]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/vstart.sh: stop script aborting when ceph.cfg is not there 10514/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 30 Jul 2016 20:05:06 +0000 (22:05 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 30 Jul 2016 20:05:06 +0000 (22:05 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/vstart.sh

index c5fc5c707d6aa8a406c038e1b0e07ab5ed1f131d..4f071270299f219f31188926d732d6bcbe5a98f5 100755 (executable)
@@ -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