summaryrefslogtreecommitdiff
path: root/scripts/galera_new_cluster.sh
blob: cf81bd0b95aa3b053993efa9a6aa555cc16af424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
COMPILATION_COMMENT="@COMPILATION_COMMENT@"

systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
    systemctl start ${1:-mariadb}

systemctl set-environment _WSREP_NEW_CLUSTER=''