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

4b4994
--- mariadb-10.1.14/scripts/galera_new_cluster.sh.orig	2016-04-04 17:12:47.255723207 +0200
4b4994
+++ mariadb-10.1.14/scripts/galera_new_cluster.sh	2016-04-04 17:13:23.129492288 +0200
4b4994
@@ -21,10 +21,13 @@
4b4994
     exit 0
4b4994
 fi 
4b4994
 
4b4994
-VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
4b4994
-COMPILATION_COMMENT="@COMPILATION_COMMENT@"
4b4994
+echo "_WSREP_NEW_CLUSTER='--wsrep-new-cluster'" >> /etc/opt/rh/rh-mariadb101/sysconfig/mariadb
4b4994
 
4b4994
-systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
4b4994
-    systemctl start ${1:-@DAEMON_NAME@}
4b4994
+service rh-mariadb101-mariadb start
4b4994
+
4b4994
+EXIT_CODE=$?
4b4994
+
4b4994
+sed -i -r "/^_WSREP_NEW_CLUSTER='--wsrep-new-cluster'$/d" /etc/opt/rh/rh-mariadb101/sysconfig/mariadb
4b4994
+
4b4994
+exit $EXIT_CODE
4b4994
 
4b4994
-systemctl set-environment _WSREP_NEW_CLUSTER=''