From 6bedb59def31ab7871d0e471e6432993208c417e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Mon, 14 Apr 2008 03:01:13 +0000 Subject: [PATCH] last minute fix: fix template instantiation for mysql passwords --- install/alternc.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/alternc.install b/install/alternc.install index b15db4e6..0a5d3c0e 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -90,7 +90,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_LOGIN/;s/password/MYSQL_PASS/;s/database/MYSQL_DATABASE/;p}" /etc/alternc/my.cnf` fi WARNING="WARNING: Do not edit this file, edit the one in /etc/alternc/templates and launch alternc.install again."