diff --git a/debian/alternc.config b/debian/alternc.config index 03c6eaa7..d0df644a 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -199,12 +199,15 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 11 ]; do exit 2 fi quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}') - + if [ -z "$quota_activation" -o "$quota_activation" != "$MOUNT_POINT" ]; then - db_input critical alternc/quotauninstalled || true - db_go - db_reset alternc/quotauninstalled || true - db_fset alternc/quotauninstalled "seen" "false" || true + db_get alternc/quotauninstalled + if [ -z "$RET" ]; then + db_input critical alternc/quotauninstalled || true + db_go + #db_reset alternc/quotauninstalled || true + db_set alternc/quotauninstalled "false" || true + fi fi ;; esac @@ -238,44 +241,6 @@ if [ -r /etc/alternc/my_mail.cnf ]; then fi -#if [ "`mysql --defaults-file=/etc/mysql/debian.cnf -Bse 'SELECT "OK";' 2>/dev/null`" = "OK" ]; then -# db_input critical alternc/use_local_mysql || true -# db_go -# db_get alternc/use_local_mysql || true -# if [ "$RET" = "false" ]; then -# #user want to use a remote server -# check_mysql -# fi -#else -#db_input critical alternc/use_remote_mysql || true -#db_go -#db_get alternc/use_remote_mysql || true -# if [ "$RET" = "true" ]; then -# #user want to use a remote server -# check_mysql -# fi -#fi - - - - -#if [ -z "$ACL" ]; then -# db_input critical alternc/acluninstalled || true -# db_go -# db_title AlternC -# db_reset alternc/acluninstalled || true -# db_fset alternc/acluninstalled "seen" "false" || true -# exit 2 -#fi -#quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}') -# -#if [ -z "$quota_activation" -o "$quota_activation" != "$MOUNT_POINT" ]; then -# db_input critical alternc/quotauninstalled || true -# db_go -# db_reset alternc/quotauninstalled || true -# db_fset alternc/quotauninstalled "seen" "false" || true -#fi - db_get alternc/hostingname if [ -z "$RET" ] then