From 50bbaacad4ec1045080311e0295f04982fe19a3a Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Thu, 27 Sep 2012 10:08:00 +0000 Subject: [PATCH] bugfix on checking partition's quota if mount point not found --- debian/alternc.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/alternc.config b/debian/alternc.config index 1cc3ba40..7f937f56 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -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