Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/10543/head'
Browse files Browse the repository at this point in the history
* upstream/pull/10543/head:
  vstart.sh: only delete conf if -n
  • Loading branch information
batrick committed Aug 2, 2016
2 parents 119f06f + c3ca7ad commit c162a8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vstart.sh
Expand Up @@ -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
Expand Down

0 comments on commit c162a8a

Please sign in to comment.