mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Update v-update-user-quota
This commit is contained in:
parent
3bcad0078d
commit
83f1b3a426
1 changed files with 3 additions and 3 deletions
|
@ -31,10 +31,10 @@ is_object_valid 'user' 'USER' "$user"
|
|||
#----------------------------------------------------------#
|
||||
|
||||
# Updating disk quota
|
||||
# Hard quota set to more than 10%. This is more meaningful.
|
||||
# Had quota equals package value. Soft quota equals 90% of package value for warnings.
|
||||
quota=$(get_user_value '$DISK_QUOTA')
|
||||
soft=$((quota * 1024))
|
||||
hard=$((soft * 1.10))
|
||||
soft=$((quota * 1024 * 0.90))
|
||||
hard=$((quota * 1024))
|
||||
|
||||
# Searching home mount point
|
||||
mnt=$(df -P /home |awk '{print $6}' |tail -n1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue