Просмотр исходного кода

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.
Vengance 9 лет назад
Родитель
Сommit
7973b34f63
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      bin/v-add-sys-quota

+ 1 - 3
bin/v-add-sys-quota

@@ -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