25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

ejabberdctl doesn't support parameters with blankspaces (EJAB-1458)

Revert "Escape output from ctlexec() to erl script (thanks to Dan Scott)(EJAB-1399)"

This reverts commit 6dea2d2307.
This commit is contained in:
Badlop 2011-02-09 13:30:01 +01:00
parent d5b4d67858
commit cb9aecf35e

View File

@ -315,21 +315,13 @@ ctlexec ()
{
CONN_NAME=$1; shift
COMMAND=$@
CTLEXEC="$ERL \
$EXEC_CMD "$ERL \
$NAME ${CONN_NAME} \
-noinput \
-hidden \
-pa $EJABBERD_EBIN_PATH \
$KERNEL_OPTS \
-s ejabberd_ctl -extra $ERLANG_NODE"
# quote input from the command line
for i in $COMMAND; do
CTLEXEC="$CTLEXEC '$i'";
done
$EXEC_CMD "$CTLEXEC"
-s ejabberd_ctl -extra $ERLANG_NODE $COMMAND"
}
# display ctl usage