25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix ERLANG_OPTS end lines when setting FIREWALL_WINDOW (#1856)

This commit is contained in:
Badlop 2017-07-12 14:43:28 +02:00
parent f6bdc6fdb2
commit d4cdc3a246

View File

@ -62,9 +62,9 @@ done
# define erl parameters # define erl parameters
ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS" ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS"
if [ "$FIREWALL_WINDOW" != "" ] ; then if [ "$FIREWALL_WINDOW" != "" ] ; then
ERLANG_OPTS="$ERLANG_OPTS -kernel " \ ERLANG_OPTS="$ERLANG_OPTS -kernel \
"inet_dist_listen_min ${FIREWALL_WINDOW%-*} " \ inet_dist_listen_min ${FIREWALL_WINDOW%-*} \
"inet_dist_listen_max ${FIREWALL_WINDOW#*-}" inet_dist_listen_max ${FIREWALL_WINDOW#*-}"
fi fi
if [ "$INET_DIST_INTERFACE" != "" ] ; then 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) 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)