From: Loic Dachary Date: Thu, 13 Nov 2014 17:49:10 +0000 (+0100) Subject: vstart: use hostname -s instead of fqdn X-Git-Tag: v0.90~81^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d1c4e5b640b8093ba29326483d33236cc51cfb5a;p=ceph.git vstart: use hostname -s instead of fqdn Otherwise init-ceph.in will fail if hostname returns a fqdn. It validates the host entry of the [osd.x] section does not contain dots. Signed-off-by: Loic Dachary --- diff --git a/src/vstart.sh b/src/vstart.sh index c0dcf6c39203..469180d7a235 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -281,7 +281,7 @@ test -d gmon && $SUDO rm -rf gmon/* # figure machine's ip -HOSTNAME=`hostname` +HOSTNAME=`hostname -s` if [ -n "$ip" ]; then IP="$ip" else