]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: use hostname -s instead of fqdn
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 17:49:10 +0000 (18:49 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 15 Nov 2014 22:27:15 +0000 (23:27 +0100)
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 <ldachary@redhat.com>
src/vstart.sh

index c0dcf6c392035779f4d77950e49cf728cd373d0b..469180d7a235d31422c691d38f6427379231e6a5 100755 (executable)
@@ -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