From aeac07654f1e15d19cbc1321da2434149b5ce6b6 Mon Sep 17 00:00:00 2001 From: Yunkon Kim Date: Tue, 30 Jul 2024 17:44:20 +0900 Subject: [PATCH] Update cleanDB.sh --- scripts/cleanDB.sh | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/scripts/cleanDB.sh b/scripts/cleanDB.sh index c5cae6abb..240eb3b5c 100755 --- a/scripts/cleanDB.sh +++ b/scripts/cleanDB.sh @@ -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 ========================================================== @@ -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 @@ -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}"