diff --git a/tools/joincluster b/tools/joincluster index 837962236..7385e1697 100755 --- a/tools/joincluster +++ b/tools/joincluster @@ -67,7 +67,7 @@ CTL=$(which ejabberdctl) echo "Using commands:" [ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10 -$CTL stop 2>/dev/null >/dev/null +exec $CTL stop 2>/dev/null >/dev/null ERLC=${ERL}c [ -x $ERL ] && echo $ERL || error "can't find erl" 11 diff --git a/tools/leavecluster b/tools/leavecluster index feacdce2d..3e42c700f 100755 --- a/tools/leavecluster +++ b/tools/leavecluster @@ -45,7 +45,7 @@ CTL=$(which ejabberdctl) echo "Using commands:" [ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10 -$CTL stop 2>/dev/null >/dev/null +exec $CTL stop 2>/dev/null >/dev/null ERLC=${ERL}c [ -x $ERL ] && echo $ERL || error "can't find erl" 11