diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-04-23 10:14:08 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-04-23 10:14:08 +0200 |
commit | 23aa8598ab8a586f2c6300b8f6d1b0b672e2e7f4 (patch) | |
tree | 396942b9dd4c9d71e189d7431d233a9d16c93e1b /tools/joincluster | |
parent | Improve purge_offline filter and speed (#543) (diff) |
Diffstat (limited to 'tools/joincluster')
-rwxr-xr-x | tools/joincluster | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/tools/joincluster b/tools/joincluster index de36e437c..e62084bc4 100755 --- a/tools/joincluster +++ b/tools/joincluster @@ -21,19 +21,21 @@ function error exit $2 } -echo "--------------------------------------------------------------------" -echo "" -echo "ejabberd cluster configuration" -echo "" -echo "This ejabberd node will be configured for use in an ejabberd cluster." -echo "IMPORTANT: all local data from the database will be lost, and" -echo "cluster database will be initialized. All data from the master" -echo "node will be replicated to this one." -echo "" -echo "--------------------------------------------------------------------" -echo "Press any key to continue, or Ctrl+C to stop now" -read foo -echo "" +[ -z $NO_WARNINGS ] && { + echo "--------------------------------------------------------------------" + echo "" + echo "ejabberd cluster configuration" + echo "" + echo "This ejabberd node will be configured for use in an ejabberd cluster." + echo "IMPORTANT: all local data from the database will be lost, and" + echo "cluster database will be initialized. All data from the master" + echo "node will be replicated to this one." + echo "" + echo "--------------------------------------------------------------------" + echo "Press any key to continue, or Ctrl+C to stop now" + read foo + echo "" +} [ $# -eq 0 ] && { echo "Make sure you have a running remote master ejabberd node" |