Skip to content

Commit 2d45784

Browse files
authored
Merge pull request #375 from grooverdan/10.1-galera_new_cluster--help
MDEV-12646: wsrep_new_cluster: Add -h and --help options
2 parents 6b8225f + a9a38fc commit 2d45784

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/galera_new_cluster.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
# the Free Software Foundation; either version 2.1 of the License, or
66
# (at your option) any later version.
77

8+
if [ "${1}" == "-h" -o "${1}" == "--help" ]; then
9+
cat <<EOF
10+
11+
Usage: ${0}
12+
13+
The script galera_new_cluster is used to bootstrap new Galera Cluster,
14+
when all the nodes are down. Run galera_new_cluster on the first node only.
15+
On the remaing nodes simply run 'service @DAEMON_NAME@ start'.
16+
17+
For more information on Galera Cluster configuration and usage see:
18+
https://mariadb.com/kb/en/mariadb/getting-started-with-mariadb-galera-cluster/
19+
20+
EOF
21+
exit 0
22+
fi
23+
824
VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
925
COMPILATION_COMMENT="@COMPILATION_COMMENT@"
1026

0 commit comments

Comments
 (0)