bugfix on checking partition's quota if mount point not found

This commit is contained in:
Steven Mondji-Lerider 2012-09-27 10:08:00 +00:00
parent d23f2035c1
commit 50bbaacad4
1 changed files with 2 additions and 2 deletions

View File

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