diff --git a/debian/alternc.config b/debian/alternc.config index ec7f9cf0..978f43d3 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -40,12 +40,12 @@ check_mysql() db_input high alternc/mysql/remote_password || true db_go db_get alternc/mysql/remote_password || true - MYSQL_PASSWORD="$RET" + MYSQL_PASS="$RET" db_input high alternc/mysql/client || true db_go db_get alternc/mysql/client || true MYSQL_CLIENT="$RET" - if [ "`mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" -h"$MYSQL_HOST" -Bse 'SELECT "OK";' 2>/dev/null`" = "OK" ]; then + if [ "`mysql -u"$MYSQL_USER" -p"$MYSQL_PASS" -h"$MYSQL_HOST" -Bse 'SELECT "OK";' 2>/dev/null`" = "OK" ]; then STATE=`expr $STATE + 1` else db_input high alternc/retry_remote_mysql || true @@ -107,7 +107,7 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 14 ]; do 1) if [ -r /etc/alternc/my.cnf ]; then MYSQL_USER=$(cat /etc/alternc/my.cnf |grep "^user"|sed -r 's/user="(.*)"/\1/'); - MYSQL_PASSWORD=$(cat /etc/alternc/my.cnf |grep "^password"|sed -r 's/password="(.*)"/\1/'); + MYSQL_PASS=$(cat /etc/alternc/my.cnf |grep "^password"|sed -r 's/password="(.*)"/\1/'); MYSQL_DATABASE=$(cat /etc/alternc/my.cnf |grep "^database"|sed -r 's/database="(.*)"/\1/'); MYSQL_HOST=$(cat /etc/alternc/my.cnf |grep "^host"|sed -r 's/host="(.*)"/\1/'); db_set alternc/mysql/host "$MYSQL_HOST"