From b6ef65ded3b875a708e8799d4b20391b49e16cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 17 Apr 2008 23:08:10 +0000 Subject: [PATCH] also fix database user variable expansion in debian configuration. without this, it is probably not possible to change the database user from the debconf prompts --- debian/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/config b/debian/config index 2822a746..ca91e649 100644 --- a/debian/config +++ b/debian/config @@ -46,7 +46,7 @@ if [ -r /etc/alternc/my.cnf ]; then # * add a right quote operator at the end of line (;s) # * convert mysql variables into our MYSQL_ naming convention (;s) # * print the result (;p) - eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_LOGIN/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf` + eval `sed -n -e "/=/{s/ *= *\"\?/='/;s/\"\?\$/'/;s/host/MYSQL_HOST/;s/user/MYSQL_USER/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf` fi # mettre les valeurs de local.sh comme "default" pour debconf