From: Sage Weil Date: Wed, 22 May 2013 16:47:03 +0000 (-0700) Subject: sysvinit: use known hostname $host instead of (incorrectly) recalculating X-Git-Tag: v0.63~10^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=caa15a34cb5d918c0c8b052cd012ec8a12fca150;p=ceph.git sysvinit: use known hostname $host instead of (incorrectly) recalculating We would need to do hostname -s on the remote node, not the local one. But we already have $host; use it! Reported-by: Xiaoxi Chen Signed-off-by: Sage Weil --- diff --git a/src/init-ceph.in b/src/init-ceph.in index e8a71949995e..65e93974283d 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -320,7 +320,7 @@ for name in $what; do "$id" \ "${osd_weight:-${defaultweight:-1}}" \ root=default \ - host="$(hostname -s)" \ + host="$host" \ $osd_location \ || : fi