bugfix on checking partition's quota if mount point not found
This commit is contained in:
parent
d23f2035c1
commit
50bbaacad4
|
@ -192,9 +192,9 @@ if [ $(echo $MOUNT_OPTS | tr , \\\n | grep '^acl$' 2>/dev/null) != 'acl' ]; then
|
|||
# db_fset alternc/acluninstalled "seen" "false" || true
|
||||
# exit 1
|
||||
fi
|
||||
$quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}')
|
||||
|
||||
|
||||
if [ $(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}') != "$MOUNT_POINT" ]; then
|
||||
if [ -z "$quota_activation" -o "$quota_activation" != "$MOUNT_POINT" ]; then
|
||||
db_input critical alternc/quotauninstalled || true
|
||||
db_go
|
||||
db_reset alternc/quotauninstalled || true
|
||||
|
|
Loading…
Reference in New Issue