[fix] debian debconf settings for mysql : read from /etc/alternc/my.cnf
This commit is contained in:
parent
1be8bc16d4
commit
d6f0d0e404
|
@ -110,6 +110,10 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 14 ]; do
|
|||
MYSQL_PASSWORD=$(cat /etc/alternc/my.cnf |grep "^password"|sed -r 's/password="(.*)"/\1/');
|
||||
MYSQL_DATABASE=$(cat /etc/alternc/my.cnf |grep "^database"|sed -r 's/database="(.*)"/\1/');
|
||||
MYSQL_HOST=$(cat /etc/alternc/my.cnf |grep "^host"|sed -r 's/host="(.*)"/\1/');
|
||||
db_set alternc/mysql/host "$MYSQL_HOST"
|
||||
db_set alternc/mysql/db "$MYSQL_DATABASE"
|
||||
db_set alternc/mysql/user "$MYSQL_USER"
|
||||
db_set alternc/mysql/password "$MYSQL_PASS"
|
||||
fi
|
||||
|
||||
if [ -r /etc/alternc/local.sh ]; then
|
||||
|
|
Loading…
Reference in New Issue