We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bcad00 commit 83f1b3aCopy full SHA for 83f1b3a
bin/v-update-user-quota
@@ -31,10 +31,10 @@ is_object_valid 'user' 'USER' "$user"
31
#----------------------------------------------------------#
32
33
# Updating disk quota
34
-# 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.
35
quota=$(get_user_value '$DISK_QUOTA')
36
-soft=$((quota * 1024))
37
-hard=$((soft * 1.10))
+soft=$((quota * 1024 * 0.90))
+hard=$((quota * 1024))
38
39
# Searching home mount point
40
mnt=$(df -P /home |awk '{print $6}' |tail -n1)
0 commit comments