rabbitmq-env: Use "hostname -f", not "hostname --fqdn"

The latter is specific to net-tools' hostname(1), found on Linux
distributions.
This commit is contained in:
Jean-Sebastien Pedron 2015-01-29 16:15:10 +01:00
parent 05ceeb0361
commit 6e76906aa5
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ fi
[ "x" = "x$RABBITMQ_USE_LONGNAME" ] && RABBITMQ_USE_LONGNAME=${USE_LONGNAME}
if [ "xtrue" = "x$RABBITMQ_USE_LONGNAME" ] ; then
RABBITMQ_NAME_TYPE=-name
[ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname --fqdn`
[ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname -f`
[ "x" = "x$NODENAME" ] && NODENAME=rabbit@${HOSTNAME}
else
RABBITMQ_NAME_TYPE=-sname