mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
commit
c076d661a3
1 changed files with 2 additions and 4 deletions
|
@ -50,9 +50,7 @@ fi
|
||||||
|
|
||||||
# Adding v2 group and user quota index
|
# Adding v2 group and user quota index
|
||||||
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
|
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
|
||||||
quotaoff $mnt
|
quotacheck -avcugm >/dev/null 2>&1
|
||||||
quotacheck -cug $mnt >/dev/null 2>&1
|
|
||||||
quotacheck -aug >/dev/null 2>&1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Adding quotacheck on reboot
|
# Adding quotacheck on reboot
|
||||||
|
@ -65,7 +63,7 @@ chmod a+x /etc/cron.daily/quotacheck
|
||||||
|
|
||||||
# Enabling group and user quota
|
# Enabling group and user quota
|
||||||
if [ ! -z "$(quotaon -pa | grep " $mnt " | grep 'user\|group' | grep 'is off')" ]; then
|
if [ ! -z "$(quotaon -pa | grep " $mnt " | grep 'user\|group' | grep 'is off')" ]; then
|
||||||
quotaon $mnt
|
quotaon -v $mnt
|
||||||
check_result $? "quota can't be enabled in $mnt" $E_DISK
|
check_result $? "quota can't be enabled in $mnt" $E_DISK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue