Commit 25544bbe authored by Steven Mondji-Lerider's avatar Steven Mondji-Lerider

Backporting remote sql server configuration bugfix from 3.1~alpha1

parent 93a280cc
......@@ -309,16 +309,28 @@ db_set alternc/mysql/db "$MYSQL_DATABASE"
fi
db_get alternc/mysql/user
if [ -z "$RET" ]
if [ -z "$RET" ]
then
db_set alternc/mysql/user "$MYSQL_USER"
fi
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"
fi
then
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" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment