Update v-update-user-quota

# Hard quota set to more than 10% of soft quota. This is more meaningful.
This commit is contained in:
Sertaç ÇELİK 2015-10-10 00:23:33 +03:00
commit 3bcad0078d

View file

@ -31,9 +31,10 @@ is_object_valid 'user' 'USER' "$user"
#----------------------------------------------------------#
# Updating disk quota
# Hard quota set to more than 10%. This is more meaningful.
quota=$(get_user_value '$DISK_QUOTA')
soft=$((quota * 1000))
hard=$((soft + 50000))
soft=$((quota * 1024))
hard=$((soft * 1.10))
# Searching home mount point
mnt=$(df -P /home |awk '{print $6}' |tail -n1)