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:
parent
05ceeb0361
commit
6e76906aa5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue