diff --git a/debian/alternc.config b/debian/alternc.config index 484588a7..93e76a3d 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -310,19 +310,37 @@ fi db_get alternc/mysql/user if [ -z "$RET" ] then -db_set alternc/mysql/user "$MYSQL_USER" + db_get alternc/mysql/remote_user + if [ -z "$RET" ] + then + db_set alternc/mysql/user "$MYSQL_USER" + else + db_set alternc/mysql/user "$RET" + fi fi db_get alternc/mysql/password if [ -z "$RET" ] then -db_set alternc/mysql/password "$MYSQL_PASS" + db_get alternc/mysql/remote_password + if [ -z "$RET" ] + then + db_set alternc/mysql/password "$MYSQL_PASS" + else + db_set alternc/mysql/password "$RET" + fi fi db_get alternc/mysql/client if [ -z "$RET" ] then -db_set alternc/mysql/client "$MYSQL_CLIENT" + db_get alternc/mysql/remote_client + if [ -z "$RET" ] + then + db_set alternc/mysql/client "$MYSQL_CLIENT" + else + db_set alternc/mysql/client "$RET" + fi fi db_get alternc/sql/backup_type