]> granicus.if.org Git - ejabberd/commitdiff
Fix ERLANG_OPTS when setting INET_DIST_INTERFACE
authorAshish SHUKLA <ashish.is@lostca.se>
Sat, 15 Jul 2017 11:12:47 +0000 (16:42 +0530)
committerAshish SHUKLA <ashish.is@lostca.se>
Sat, 15 Jul 2017 11:12:47 +0000 (16:42 +0530)
ejabberdctl.template

index aa2353cc83b5068daf85e682f47b00a19d643951..efda14ffb5c0fc11457afd407949242b86c6f9fc 100755 (executable)
@@ -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}}