summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJakub Dorňák <jdornak@redhat.com>2017-04-30 14:47:34 +1000
committerDaniel Black <grooverdan@users.sourceforge.net>2017-04-30 14:47:34 +1000
commita9a38fcd7aa4599d78fe9407d5f38c31394cd17c (patch)
treef9b1b3d71f185c7ce86c2ca03663ab60b0808bc8 /scripts
parent935a1c676e1fbfea7950d69c410a59a29a50857a (diff)
downloadmariadb-git-a9a38fcd7aa4599d78fe9407d5f38c31394cd17c.tar.gz
wsrep_new_cluster: Add -h and --help options
From: https://github.com/devexp-db/mariadb/blob/f27/mariadb-galera-new-cluster-help.patch
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/galera_new_cluster.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/galera_new_cluster.sh b/scripts/galera_new_cluster.sh
index cf81bd0b95a..65ba2ca1fcc 100755
--- a/scripts/galera_new_cluster.sh
+++ b/scripts/galera_new_cluster.sh
@@ -5,6 +5,22 @@
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
+if [ "${1}" == "-h" -o "${1}" == "--help" ]; then
+ cat <<EOF
+
+Usage: ${0}
+
+ The script galera_new_cluster is used to bootstrap new Galera Cluster,
+ when all the nodes are down. Run galera_new_cluster on the first node only.
+ On the remaing nodes simply run 'service @DAEMON_NAME@ start'.
+
+ For more information on Galera Cluster configuration and usage see:
+ https://mariadb.com/kb/en/mariadb/getting-started-with-mariadb-galera-cluster/
+
+EOF
+ exit 0
+fi
+
VERSION="@VERSION@@MYSQL_SERVER_SUFFIX@"
COMPILATION_COMMENT="@COMPILATION_COMMENT@"