Bugfixing using remote sql user

This commit is contained in:
Steven Mondji-Lerider 2013-02-22 17:02:20 +00:00
parent 7197f9b4e0
commit 7d4ad2244a
1 changed files with 21 additions and 3 deletions

24
debian/alternc.config vendored
View File

@ -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