aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <cromain@users.noreply.github.com>2017-07-19 11:33:38 +0200
committerGitHub <noreply@github.com>2017-07-19 11:33:38 +0200
commit26b8dd75f7ad9973fdf8581ff915def8463bcdf8 (patch)
tree9a9944b607c6a2810965568c3542ac9f91da852b
parentUpdate fast_tls (diff)
parentFix ERLANG_OPTS when setting INET_DIST_INTERFACE (diff)
Merge pull request #1869 from wahjava/master
Fix ERLANG_OPTS when setting INET_DIST_INTERFACE
-rwxr-xr-xejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index aa2353cc8..efda14ffb 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -69,7 +69,7 @@ fi
if [ "$INET_DIST_INTERFACE" != "" ] ; then
INET_DIST_INTERFACE2=$("$ERL" -noshell -eval 'case inet:parse_address("'$INET_DIST_INTERFACE'") of {ok,IP} -> io:format("~p",[IP]); _ -> ok end.' -s erlang halt)
if [ "$INET_DIST_INTERFACE2" != "" ] ; then
- ERLANG_OPTS="$ERLANG_OPTS -kernel inet_dist_use_interface \"$INET_DIST_INTERFACE2\""
+ ERLANG_OPTS="$ERLANG_OPTS -kernel inet_dist_use_interface $INET_DIST_INTERFACE2"
fi
fi
ERL_LIBS={{libdir}}