diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-11-02 23:19:37 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-11-02 23:19:37 -0500 |
commit | 8982f39322a03bce24a9ecc7b11ab9f95f0418d7 (patch) | |
tree | 9adee8aac6cca7b7d47ae9768c9d4f419446411e | |
parent | a6b624978e6f02dae1adf94bc47d7a870742e45d (diff) | |
download | mariadb-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-x | scripts/galera_new_cluster.sh | 6 |
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='' |