Skip to content

Commit a574407

Browse files
author
Nirbhay Choubey
committed
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
1 parent d8ecc2a commit a574407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/galera_new_cluster.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
99
COMPILATION_COMMENT="@COMPILATION_COMMENT@"
1010

11-
/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
12-
/usr/bin/systemctl start {1:-mariadb@service}
11+
systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
12+
systemctl start ${1:-mariadb}
1313

14-
/usr/bin/systemctl set-environment _WSREP_NEW_CLUSTER=''
14+
systemctl set-environment _WSREP_NEW_CLUSTER=''

0 commit comments

Comments
 (0)