Skip to content

Commit

Permalink
vstart: clean prints
Browse files Browse the repository at this point in the history
- remove duplicate print of ip
- print the right port

Signed-off-by: Roi Dayan <[email protected]>
  • Loading branch information
roidayan committed Apr 12, 2016
1 parent b474652 commit 5805484
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,9 @@ else
IP="$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | head -n1)"
# if nothing left, try using localhost address, it might work
if [ -z "$IP" ]; then IP="127.0.0.1"; fi
echo ip $IP
fi
echo "ip $IP"
echo "port $PORT"
echo "port $CEPH_PORT"


[ -z $CEPH_ADM ] && CEPH_ADM=$CEPH_BIN/ceph
Expand Down

0 comments on commit 5805484

Please sign in to comment.