mirror of
https://github.com/ceph/ceph
synced 2025-03-05 07:48:55 +00:00
vstart.sh: only delete conf if -n
src/test/ceph_objectstore_tool.py depends on an implicit "-k" when not creating a new cluster. (Deleting the conf file without -n makes no sense anyway.) Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
4d95e5c00e
commit
c3ca7ad40c
@ -290,7 +290,13 @@ if [ "$overwrite_conf" -eq 0 ]; then
|
||||
RGW=`$CEPH_BIN/ceph-conf -c $conf_fn --name $VSTART_SEC num_rgw 2>/dev/null` && \
|
||||
CEPH_NUM_RGW="$RGW"
|
||||
else
|
||||
[ -e "$conf_fn" ] && rm -- "$conf_fn"
|
||||
if [ "$new" -ne 0 ]; then
|
||||
# only delete if -n
|
||||
[ -e "$conf_fn" ] && rm -- "$conf_fn"
|
||||
else
|
||||
# -k is implied... (doesn't make sense otherwise)
|
||||
overwrite_conf=0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$start_all" -eq 1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user