]> granicus.if.org Git - ejabberd/commitdiff
Remove trailing space to get correct arguments
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 08:47:12 +0000 (09:47 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 13 Mar 2015 08:47:12 +0000 (09:47 +0100)
This allows to remove any argument to joincluster/leavecluster scripts
when no parameters has been added after the ctl command.

ejabberdctl.template

index 0376d4b573da548b48d89dd070c752aa03c9c598..d321ad3181460133b37387eb79003e0f0dfc7c02 100755 (executable)
@@ -468,7 +468,7 @@ case $ARGS in
     ' etop') etop;;
     ' started') wait_for_status 0 30 2;; # wait 30x2s before timeout
     ' stopped') wait_for_status 3 15 2 && stop_epmd;; # wait 15x2s before timeout
-    ' join_cluster '*) join_cluster ${ARGS# join_cluster };;
-    ' leave_cluster '*) leave_cluster ${ARGS# leave_cluster };;
+    ' join_cluster '*) join_cluster ${ARGS# join_cluster};;
+    ' leave_cluster '*) leave_cluster ${ARGS# leave_cluster};;
     *) ctl $ARGS;;
 esac