From a574407444fc3ea93ca88afa93dc18154251bf74 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Mon, 2 Nov 2015 23:19:37 -0500 Subject: [PATCH] MDEV-9007: Bootstrap does not work in CentOS start script Some modifications in galera_new_cluster : * Do not use absolute path for systemctl * Fix parameter substitution syntax --- scripts/galera_new_cluster.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/galera_new_cluster.sh b/scripts/galera_new_cluster.sh index 0720116020d..cf81bd0b95a 100755 --- a/scripts/galera_new_cluster.sh +++ b/scripts/galera_new_cluster.sh @@ -8,7 +8,7 @@ VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@" COMPILATION_COMMENT="@COMPILATION_COMMENT@" -/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \ - /usr/bin/systemctl start {1:-mariadb@service} +systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \ + systemctl start ${1:-mariadb} -/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER='' +systemctl set-environment _WSREP_NEW_CLUSTER=''