diff --git a/debian/alternc.config b/debian/alternc.config index 4a69ea03..c5e3aaf7 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -104,7 +104,7 @@ SQLBACKUP_TYPE="rotate" SQLBACKUP_OVERWRITE="no" QUEST_STATE=1 -while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do +while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 14 ]; do case "$QUEST_STATE" in 1) if [ -r /etc/alternc/local.sh ]; then @@ -210,19 +210,22 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do 8) if [ "`mysql --defaults-file=/etc/mysql/debian.cnf -Bse 'SELECT "OK";' 2>/dev/null`" = "OK" ]; then db_input critical alternc/use_local_mysql || true - else - db_input critical alternc/use_remote_mysql || true fi ;; 9) - db_get alternc/use_local_mysql || true - if [ -z "$RET" -o "$RET" == "false" ] - then - #user want to use a remote server - check_mysql + db_get alternc/use_local_mysql + if [ "$RET" != "true" ]; then + db_input critical alternc/use_remote_mysql || true fi ;; 10) + db_get alternc/use_remote_mysql + if [ "$RET" == "true" ]; then + # user want to use a remote server + check_mysql + fi + ;; + 11) # We need to set the alternc_location here because we have to test for quotas and acls db_get alternc/alternc_html @@ -259,14 +262,14 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do fi ) ;; - 11) + 12) db_get alternc/alternc_mail if [ -z "$RET" ]; then db_set alternc/alternc_mail $ALTERNC_MAIL db_input high alternc/alternc_mail fi ;; - 12) + 13) db_get alternc/alternc_logs if [ -z "$RET" ];then db_set alternc/alternc_logs $ALTERNC_LOGS diff --git a/debian/alternc.templates b/debian/alternc.templates index 9a98dca6..a7cd8d04 100644 --- a/debian/alternc.templates +++ b/debian/alternc.templates @@ -238,7 +238,6 @@ _Description: Use locally found MySQL server? Template: alternc/use_remote_mysql Type: boolean _Description: Use a remote MySQL server? - No local Mysql server was found. Please confirm you want to use a remote Mysql Server. If not, AlternC cannot be installed.