We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fe10a3 + 6a3df38 commit 12727deCopy full SHA for 12727de
bin/v-add-sys-quota
@@ -38,7 +38,7 @@ fi
38
39
# Adding group and user quota on /home partition
40
mnt=$(df -P /home | awk '{print $6}' | tail -n1)
41
-lnr=$(cat -n /etc/fstab | awk '{print $1,$3}' | grep "$mnt$" | cut -f 1 -d ' ')
+lnr=$(cat -n /etc/fstab | grep -v "#" | awk '{print $1,$3}' | grep "$mnt$" | cut -f 1 -d ' ')
42
opt=$(sed -n ${lnr}p /etc/fstab | awk '{print $4}')
43
fnd='usrquota\|grpquota\|usrjquota=aquota.user\|grpjquota=aquota.group\|jqfmt=vfsv0'
44
if [ $(echo $opt | tr ',' '\n' | grep -x $fnd | wc -l) -ne 5 ]; then
0 commit comments