Blame SOURCES/mariadb-galera-new-cluster-init.patch

f72fa0
diff -up mariadb-10.1.24/scripts/galera_new_cluster.sh.p42 mariadb-10.1.24/scripts/galera_new_cluster.sh
f72fa0
--- mariadb-10.1.24/scripts/galera_new_cluster.sh.p42	2017-06-25 09:49:08.770170892 +0200
f72fa0
+++ mariadb-10.1.24/scripts/galera_new_cluster.sh	2017-06-25 09:53:10.367380549 +0200
f72fa0
@@ -24,7 +24,12 @@ fi
f72fa0
 VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
f72fa0
 COMPILATION_COMMENT="@COMPILATION_COMMENT@"
4b4994
 
4b4994
-systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
4b4994
-    systemctl start ${1:-@DAEMON_NAME@}
f72fa0
+echo "_WSREP_NEW_CLUSTER='--wsrep-new-cluster'" >> @sysconfdir@/sysconfig/mariadb
f72fa0
 
f72fa0
-systemctl set-environment _WSREP_NEW_CLUSTER=''
4b4994
+service rh-mariadb101-mariadb start
4b4994
+
4b4994
+EXIT_CODE=$?
4b4994
+
f72fa0
+sed -i -r "/^_WSREP_NEW_CLUSTER='--wsrep-new-cluster'$/d" @sysconfdir@/sysconfig/mariadb
4b4994
+
4b4994
+exit $EXIT_CODE