summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-11-02 23:19:37 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2015-11-02 23:19:37 -0500
commit8982f39322a03bce24a9ecc7b11ab9f95f0418d7 (patch)
tree9adee8aac6cca7b7d47ae9768c9d4f419446411e
parenta6b624978e6f02dae1adf94bc47d7a870742e45d (diff)
downloadmariadb-git-8982f39322a03bce24a9ecc7b11ab9f95f0418d7.tar.gz
MDEV-9007: Bootstrap does not work in CentOS start scriptbb-10.1-mdev9007
Some modifications in galera_new_cluster : * Do not use absolute path for systemctl * Fix parameter substitution syntax
-rwxr-xr-xscripts/galera_new_cluster.sh6
1 files 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=''