diff options
author | Christophe Romain <cromain@users.noreply.github.com> | 2017-09-18 14:09:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 14:09:16 +0300 |
commit | cb076924ccd08224a5754e4aaa89ae2974e8fe01 (patch) | |
tree | daaf6c29bc88fd1702f981e6219daf89aa68b861 /ejabberdctl.template | |
parent | cce4056040cfb71bdbf4ac887d10104a0c6067ef (diff) | |
parent | 2a7d9d93c88d463df2f5df139350c7da4166f2bd (diff) |
Merge pull request #1996 from nosnilmot/ejabberdctl-quote-peer
Quote $PEER in ping command to avoid hostnames containing "-" being interpreted as arithmetic
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-x | ejabberdctl.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index 3f47bbf53..2fa554108 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -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) |