set softquota=hardquota

This commit is contained in:
Vadim Sitnic 2018-04-27 11:33:13 +03:00
parent 8d85cdcb2c
commit 9148f7c9c2

View file

@ -33,7 +33,7 @@ is_object_valid 'user' 'USER' "$user"
# Updating disk quota # Updating disk quota
# Had quota equals package value. Soft quota equals 90% of package value for warnings. # Had quota equals package value. Soft quota equals 90% of package value for warnings.
quota=$(get_user_value '$DISK_QUOTA') quota=$(get_user_value '$DISK_QUOTA')
soft=$(echo "$quota * 1024 * 0.90"|bc |cut -f 1 -d .) soft=$(echo "$quota * 1024"|bc |cut -f 1 -d .)
hard=$(echo "$quota * 1024"|bc |cut -f 1 -d .) hard=$(echo "$quota * 1024"|bc |cut -f 1 -d .)
# Searching home mount point # Searching home mount point