src/vstart.sh: stop script aborting when ceph.cfg is not there

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Willem Jan Withagen 2016-07-30 22:05:06 +02:00
parent e5b3ee0b79
commit df49518642

View File

@ -290,7 +290,7 @@ 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
rm -- "$conf_fn"
[ -e "$conf_fn" ] && rm -- "$conf_fn"
fi
if [ "$start_all" -eq 1 ]; then