Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-03-13 13:40:23 +0300
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-03-13 13:40:23 +0300
commit9bd47fde3587cba7f6a6d9dda05c66f14d0dfdad (patch)
treeb0a6f279766674fa413442607ec2edd709948398 /ejabberdctl.template
parentf72799b3cc6dbf06e6b2d62f6acbb05753b8968a (diff)
ejabberdctl: Escape whitespace in ERL_OPTIONS
If ERL_OPTIONS="-opt arg" is specified, make sure the space character between "-opt" and "arg" is retained. Fixes #143.
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-xejabberdctl.template1
1 files changed, 1 insertions, 0 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index d32da0d3a..685d19819 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -112,6 +112,7 @@ ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump
ERL_INETRC=$ETC_DIR/inetrc
# define erl parameters
+ERL_OPTIONS=$(echo $ERL_OPTIONS | sed 's/ /\\ /g')
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS"
KERNEL_OPTS=""
if [ "$FIREWALL_WINDOW" != "" ] ; then