Backporting remote sql server configuration bugfix from 3.1~alpha1

This commit is contained in:
Steven Mondji-Lerider 2013-03-04 12:03:54 +00:00
parent 93a280cce4
commit 25544bbec8
1 changed files with 19 additions and 7 deletions

26
debian/alternc.config vendored
View File

@ -309,16 +309,28 @@ db_set alternc/mysql/db "$MYSQL_DATABASE"
fi fi
db_get alternc/mysql/user db_get alternc/mysql/user
if [ -z "$RET" ] if [ -z "$RET" ]
then then
db_set alternc/mysql/user "$MYSQL_USER" db_get alternc/mysql/remote_user
fi 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 db_get alternc/mysql/password
if [ -z "$RET" ] if [ -z "$RET" ]
then then
db_set alternc/mysql/password "$MYSQL_PASS" db_get alternc/mysql/remote_password
fi 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 db_get alternc/mysql/client
if [ -z "$RET" ] if [ -z "$RET" ]