From deccf91280f3ed47719f965f03f0122297f51848 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 25 Sep 2015 13:35:03 +0200 Subject: [PATCH] Fix calling problem introduced when reducing bashisms (#748) --- tools/joincluster | 2 +- tools/leavecluster | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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