From 92b9d692f1e29672fab8391db4d56c678722ee58 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 1 Nov 2013 13:40:40 +0100 Subject: [PATCH] postinstall fix --- util/postinstall.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/postinstall.sh.in b/util/postinstall.sh.in index 549f70ec..ae0571a6 100755 --- a/util/postinstall.sh.in +++ b/util/postinstall.sh.in @@ -213,7 +213,7 @@ gather_mysql_account() { MYSQL_HOSTNAME=$response if [ $MYSQL_HOSTNAME = "localhost" ]; then - askNonBlank "Please enter mysql socket path" "MYSQL_SOCKET" + askNonBlank "Please enter mysql socket path" "$MYSQL_SOCKET" MYSQL_SOCKET=$response else MYSQL_SOCKET="" @@ -381,7 +381,7 @@ execute_post_install_tasks() { make_certificate - MYSQL_SOCKET=`echo $MYSQL_SOCKET | sed "s/\//\\\\\//g"` + MYSQL_SOCKET=$(sed 's/\//\\\//g' <<< "$MYSQL_SOCKET") sed -e "s/mysqlpwd=verystrongpassword/mysqlpwd=$MYSQL_PASSWORD/" -e "s/tls_enable=0/tls_enable=1/" -e "s/mysqlsocket=\/var\/run\/mysqld\/mysqld.sock/mysqlsocket=$MYSQL_SOCKET/" $SYSCONFDIR/piler.conf > $PILERCONF_TMP cat $PILERCONF_TMP > $SYSCONFDIR/piler.conf