aboutsummaryrefslogtreecommitdiff
path: root/tools/leavecluster
diff options
context:
space:
mode:
Diffstat (limited to 'tools/leavecluster')
-rwxr-xr-xtools/leavecluster28
1 files changed, 16 insertions, 12 deletions
diff --git a/tools/leavecluster b/tools/leavecluster
index cb4737adb..7acc2b46c 100755
--- a/tools/leavecluster
+++ b/tools/leavecluster
@@ -17,18 +17,22 @@ function error
exit $2
}
-echo "--------------------------------------------------------------------"
-echo ""
-echo "ejabberd cluster configuration"
-echo ""
-echo "This ejabberd node will be removed from the cluster."
-echo "IMPORTANT: this node will be stopped. At least one other clustered"
-echo "node must be running."
-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 removed from the cluster."
+ echo "IMPORTANT: this node will be stopped. At least one other clustered"
+ echo "node must be running."
+ echo ""
+ echo "--------------------------------------------------------------------"
+ echo "Press any key to continue, or Ctrl+C to stop now"
+ read foo
+ echo ""
+}
+echo ok
+exit
PA=/tmp/clustersetup_$$
CTL=$(which ejabberdctl)