From caa15a34cb5d918c0c8b052cd012ec8a12fca150 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 22 May 2013 09:47:03 -0700 Subject: [PATCH] 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 --- src/init-ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init-ceph.in b/src/init-ceph.in index e8a71949995ed..65e93974283d2 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 -- 2.39.5