summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2015-01-29 16:15:10 +0100
committerJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2015-01-29 16:15:10 +0100
commit6e76906aa521a2b100360d99f803e207ae0414ad (patch)
tree6305646860fd7254ec05934a4e54c9ee1ae5d8dd /scripts
parent05ceeb0361ec032f8653e1b2266acf357fd61f01 (diff)
downloadrabbitmq-server-git-6e76906aa521a2b100360d99f803e207ae0414ad.tar.gz
rabbitmq-env: Use "hostname -f", not "hostname --fqdn"
The latter is specific to net-tools' hostname(1), found on Linux distributions.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rabbitmq-env2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env
index 5a3e73bcaa..8a1b4d6510 100755
--- a/scripts/rabbitmq-env
+++ b/scripts/rabbitmq-env
@@ -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