Skip to content

Commit 3bcad00

Browse files
committed
Update v-update-user-quota
# Hard quota set to more than 10% of soft quota. This is more meaningful.
1 parent 362efbe commit 3bcad00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-update-user-quota

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ is_object_valid 'user' 'USER' "$user"
3131
#----------------------------------------------------------#
3232

3333
# Updating disk quota
34+
# Hard quota set to more than 10%. This is more meaningful.
3435
quota=$(get_user_value '$DISK_QUOTA')
35-
soft=$((quota * 1000))
36-
hard=$((soft + 50000))
36+
soft=$((quota * 1024))
37+
hard=$((soft * 1.10))
3738

3839
# Searching home mount point
3940
mnt=$(df -P /home |awk '{print $6}' |tail -n1)

0 commit comments

Comments
 (0)