Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cleanDB.sh #1696

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"