From 671c4c32f4c1f39513f44b1a9cd2b5ed33d06196 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 18 Sep 2012 13:31:06 -0700 Subject: [PATCH] ceph_common.sh: 'hostname -s' (instead of cut ...) This will also match up with the instructions in the docs. Signed-off-by: Sage Weil --- src/ceph_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph_common.sh b/src/ceph_common.sh index 73f13f4585b4f..b66b1de3a53d5 100644 --- a/src/ceph_common.sh +++ b/src/ceph_common.sh @@ -5,7 +5,7 @@ CCONF="$BINDIR/ceph-conf" default_conf=$ETCDIR"/ceph.conf" conf=$default_conf -hostname=`hostname | cut -d . -f 1` +hostname=`hostname -s` verify_conf() { # fetch conf? @@ -35,7 +35,7 @@ check_host() { # what host is this daemon assigned to? host=`$CCONF -c $conf -n $type.$id host` if [ "$host" = "localhost" ]; then - echo "$0: use a proper short hostname, not 'localhost', in $conf section $type.$id; skipping entry" + echo "$0: use a proper short hostname (hostname -s), not 'localhost', in $conf section $type.$id; skipping entry" return 1 fi ssh="" -- 2.39.5