Skip to content

Commit c076d66

Browse files
Merge pull request hestiacp#1098 from ianklemm/patch-1
Fix quota
2 parents de6eb64 + dc89a43 commit c076d66

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/v-add-sys-quota

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ fi
5050

5151
# Adding v2 group and user quota index
5252
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
53-
quotaoff $mnt
54-
quotacheck -cug $mnt >/dev/null 2>&1
55-
quotacheck -aug >/dev/null 2>&1
53+
quotacheck -avcugm >/dev/null 2>&1
5654
fi
5755

5856
# Adding quotacheck on reboot
@@ -65,7 +63,7 @@ chmod a+x /etc/cron.daily/quotacheck
6563

6664
# Enabling group and user quota
6765
if [ ! -z "$(quotaon -pa | grep " $mnt " | grep 'user\|group' | grep 'is off')" ]; then
68-
quotaon $mnt
66+
quotaon -v $mnt
6967
check_result $? "quota can't be enabled in $mnt" $E_DISK
7068
fi
7169

0 commit comments

Comments
 (0)