From 7d4ad2244aebac5d81bebc10814b30e717512fbe Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Fri, 22 Feb 2013 17:02:20 +0000 Subject: [PATCH] Bugfixing using remote sql user --- debian/alternc.config | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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