diff options
author | Johan Oudinet <johan.oudinet@green-communications.fr> | 2015-09-22 17:07:39 +0200 |
---|---|---|
committer | Johan Oudinet <johan.oudinet@green-communications.fr> | 2015-09-22 17:07:39 +0200 |
commit | c360326cdbc4797c519d732f29d10506ef10f196 (patch) | |
tree | 6c38c85ce951ed6159de3a4fd561ba28e32fb751 /ejabberdctl.template | |
parent | Set disable caching headers in http-bind responses (EJAB-1643) (diff) |
Allow root to run join_cluster and leave_cluster
Prefix the call to joincluster and leavecluster in ejabberdctl by
$EXEC_CMD. Avoid using sh -c in these scripts.
Should fix #676.
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-x | ejabberdctl.template | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index 4704c85c..04ede347 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -444,11 +444,11 @@ check_start() # cluster setup join_cluster() { - $EJABBERD_BIN_PATH/joincluster $* + $EXEC_CMD "$EJABBERD_BIN_PATH/joincluster $*" } leave_cluster() { - $EJABBERD_BIN_PATH/leavecluster $* + $EXEC_CMD "$EJABBERD_BIN_PATH/leavecluster $*" } # allow sync calls |