mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Quote $PEER in ping command to avoid hostnames containing "-" being interpreted as arithmetic
This commit is contained in:
parent
dfd2045523
commit
2a7d9d93c8
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ case $1 in
|
|||
PEER=${2:-$ERLANG_NODE}
|
||||
[ "$PEER" = "${PEER%.*}" ] && PS="-s"
|
||||
exec_cmd "$ERL" ${PS:--}name $(uid ping $(hostname $PS)) $ERLANG_OPTS \
|
||||
-noinput -hidden -eval 'io:format("~p~n",[net_adm:ping('"$PEER"')])' \
|
||||
-noinput -hidden -eval 'io:format("~p~n",[net_adm:ping('"'$PEER'"')])' \
|
||||
-s erlang halt -output text
|
||||
;;
|
||||
started)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue