mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
vstart: fix ip determination
This commit is contained in:
parent
98280608a0
commit
cc0e803ffd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user