Fix quota

Without this fix, the script tries to remount the filesystem read-only which (mostly) fails and returns an error.
Also, running quotacheck  two times is not needed.
This commit is contained in:
Vengance 2017-02-25 18:38:17 +01:00 committed by GitHub
commit 7973b34f63

View file

@ -50,9 +50,7 @@ fi
# Adding v2 group and user quota index
if [ ! -e "$mnt/aquota.user" ] || [ ! -e "$mnt/aquota.group" ]; then
quotaoff $mnt
quotacheck -cug $mnt >/dev/null 2>&1
quotacheck -aug >/dev/null 2>&1
quotacheck -avcugm >/dev/null 2>&1
fi
# Adding quotacheck on reboot