mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 22:04:00 -07:00
Update v-update-user-quota
# Hard quota set to more than 10% of soft quota. This is more meaningful.
This commit is contained in:
parent
362efbe902
commit
3bcad0078d
1 changed files with 3 additions and 2 deletions
|
@ -31,9 +31,10 @@ is_object_valid 'user' 'USER' "$user"
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Updating disk quota
|
# Updating disk quota
|
||||||
|
# Hard quota set to more than 10%. This is more meaningful.
|
||||||
quota=$(get_user_value '$DISK_QUOTA')
|
quota=$(get_user_value '$DISK_QUOTA')
|
||||||
soft=$((quota * 1000))
|
soft=$((quota * 1024))
|
||||||
hard=$((soft + 50000))
|
hard=$((soft * 1.10))
|
||||||
|
|
||||||
# Searching home mount point
|
# Searching home mount point
|
||||||
mnt=$(df -P /home |awk '{print $6}' |tail -n1)
|
mnt=$(df -P /home |awk '{print $6}' |tail -n1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue