Skip to content

Commit

Permalink
Update cleanDB.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Jul 30, 2024
2 parents 457c16c + aeac076 commit c46749d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions scripts/cleanDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ fi


TBMETAPATH="$CBTUMBLEBUG_ROOT/meta_db/dat"
SPMETAPATH="$CBTUMBLEBUG_ROOT/container-volume/cb-spider-container"
VOL_TB_META_PATH="$CBTUMBLEBUG_ROOT/container-volume/cb-tumblebug-container"
VOL_SP_META_PATH="$CBTUMBLEBUG_ROOT/container-volume/cb-spider-container"
VOL_ETC_DATA_PATH="$CBTUMBLEBUG_ROOT/container-volume/etcd"

echo
echo ==========================================================
Expand All @@ -24,9 +26,15 @@ echo -e "Will remove following directories and files"
echo
echo -e "Path:${RED}${TBMETAPATH} ${NC}"
ls $TBMETAPATH
echo
echo -e "Path:${RED}${VOL_TB_META_PATH} ${NC}"
ls $VOL_TB_META_PATH
echo
echo -e "Path:${RED}${SPMETAPATH} ${NC}"
ls $SPMETAPATH
echo -e "Path:${RED}${VOL_SP_META_PATH} ${NC}"
ls $VOL_SP_META_PATH
echo
echo -e "Path:${RED}${VOL_ETC_DATA_PATH} ${NC}"
ls $VOL_ETC_DATA_PATH
echo

while true; do
Expand All @@ -49,11 +57,15 @@ done
echo

ls $TBMETAPATH
ls $SPMETAPATH
ls $VOL_TB_META_PATH
ls $VOL_SP_META_PATH
ls $VOL_ETC_DATA_PATH

echo

sudo rm -rf $TBMETAPATH
sudo rm -rf $SPMETAPATH
sudo rm -rf $VOL_TB_META_PATH
sudo rm -rf $VOL_SP_META_PATH
sudo rm -rf $VOL_ETC_DATA_PATH

echo -e "${LGREEN} Done! ${NC}"

0 comments on commit c46749d

Please sign in to comment.