From df495186423bb746fddb6b18011db27216f085c8 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen <wjw@digiware.nl> Date: Sat, 30 Jul 2016 22:05:06 +0200 Subject: [PATCH] src/vstart.sh: stop script aborting when ceph.cfg is not there Signed-off-by: Willem Jan Withagen <wjw@digiware.nl> --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index c5fc5c707d6..4f071270299 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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