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