]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: do not add host for mgr.* section if not $overwrite_conf 13767/head
authorKefu Chai <kchai@redhat.com>
Fri, 3 Mar 2017 07:52:11 +0000 (15:52 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 3 Mar 2017 07:54:14 +0000 (15:54 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/vstart.sh

index cf922e1f4ad645f50815f7efb4f050dbd83d6239..318ea15a08a035b6d1ee4435e1bd607c079395a1 100755 (executable)
@@ -789,7 +789,7 @@ if [ "$CEPH_NUM_MGR" -gt 0 ]; then
             ceph_adm -i $key_fn auth add mgr.$name mon 'allow *'
         fi
 
-        cat <<EOF >> $conf_fn
+        wconf <<EOF
 [mgr.$name]
         host = $HOSTNAME
 EOF