aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-03-13 09:27:55 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2015-03-13 09:27:55 +0100
commit0cc4cad480250ca250e176133f1139e7c1495e96 (patch)
treee8a9ae8b44f10bde4de0670f4fe5305677e04207
parentReplace bashism in ejabberdctl (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.
-rwxr-xr-xejabberdctl.template1
1 files changed, 1 insertions, 0 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 0376d4b57..dba9479e5 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