We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e3db9 commit f511e48Copy full SHA for f511e48
1 file changed
bin/v-update-user-quota
@@ -30,16 +30,16 @@ is_object_valid 'user' 'USER' "$user"
30
# Action #
31
#----------------------------------------------------------#
32
33
-# Updating disk quota
34
-# Had quota equals package value. Soft quota equals 90% of package value for warnings.
+# Update disk quota
+# Hard quota quals package value. Soft quota equals 90% of package value.
35
quota=$(get_user_value '$DISK_QUOTA')
36
soft=$(echo "$quota * 1024"|bc |cut -f 1 -d .)
37
hard=$(echo "$quota * 1024"|bc |cut -f 1 -d .)
38
39
# Searching home mount point
40
mnt=$(df -P /home |awk '{print $6}' |tail -n1)
41
42
-# Checking unlinmited quota
+# Checking unlimited quota
43
if [ "$quota" = 'unlimited' ]; then
44
setquota $user 0 0 0 0 $mnt 2>/dev/null
45
else
0 commit comments