]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: Remove dbstore directory if cluster is started as new
authorSamarah Uriarte <samarah.uriarte@ibm.com>
Thu, 27 Feb 2025 21:30:50 +0000 (15:30 -0600)
committerSamarah Uriarte <samarah.uriarte@ibm.com>
Thu, 10 Jul 2025 13:10:34 +0000 (08:10 -0500)
Signed-off-by: Samarah Uriarte <samarah.uriarte@ibm.com>
src/vstart.sh

index 8956593a99ed5f18b0956855021e9895503ec992..27a898aabe09bfb8a901650112be1906cfbfb7b3 100755 (executable)
@@ -795,6 +795,10 @@ do_rgw_dbstore_conf() {
         exit 1
     fi
 
+    if [ "$new" -eq 1 ]; then
+        prun rm -rf "$CEPH_DEV_DIR/rgw/dbstore"
+    fi
+
     prun mkdir -p "$CEPH_DEV_DIR/rgw/dbstore"
     wconf <<EOF
         rgw backend store = dbstore