]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: fix ip determination
authorSage Weil <sage@newdream.net>
Wed, 7 Jan 2009 23:12:02 +0000 (15:12 -0800)
committerSage Weil <sage@newdream.net>
Wed, 7 Jan 2009 23:12:27 +0000 (15:12 -0800)
src/vstart.sh

index ec015b0d88c1378932b3ea86dd27def8739d245f..16274660eb6b2b5ac326dc4db04c3c7e36cf66e9 100755 (executable)
@@ -109,7 +109,7 @@ test -d gmon && $SUDO rm -rf gmon/*
 
 # figure machine's ip
 HOSTNAME=`hostname`
-IP=`host $HOSTNAME | grep $HOSTNAME | cut -d ' ' -f 4`
+IP=`host $HOSTNAME | grep 'has address' | cut -d ' ' -f 4`
 [ "$CEPH_BIN" == "" ] && CEPH_BIN=.
 [ "$CEPH_PORT" == "" ] && CEPH_PORT=6789
 echo hostname $HOSTNAME