uninstall fixes

This commit is contained in:
vdo 2022-06-06 22:01:06 +01:00
parent ddfa6e596a
commit 83d4d41092
2 changed files with 10 additions and 10 deletions

1
.env
View file

@ -10,7 +10,6 @@ MONEROD_TAG=latest
MONEROD_RPC_PORT=18081
MONEROD_RESTRICTED_RPC_PORT=18089
MONEROD_P2P_PORT=18080
#MONEROD_EXTRA_PARAMS=--prune-blockchain
MONEROD_EXTRA_PARAMS=
MONEROD_accessControlAllowOriginList=*

View file

@ -7,21 +7,21 @@
Off='\033[0m' # Text Reset
# Regular Colors
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Purple='\033[0;35m' # Purple
White='\033[0;37m' # White
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
#Yellow='\033[0;33m' # Yellow
#Purple='\033[0;35m' # Purple
White='\033[0;37m' # White
# Background
On_Black='\033[40m' # Black
OkBullet="${Green}${On_Black}:: ${White}${On_Black}"
WarnBullet="${Yellow}${On_Black}:: ${White}${On_Black}"
#WarnBullet="${Yellow}${On_Black}:: ${White}${On_Black}"
ErrBullet="${Red}${On_Black}:: ${White}${On_Black}"
Ok="${Green}${On_Black} ok.${Off}"
Fail="${Red}${On_Black} failed!${Off}"
Nok="${Yellow}${On_Black} nok.${Off}"
#Nok="${Yellow}${On_Black} nok.${Off}"
################################################################
# Vars #
@ -65,17 +65,18 @@ uninstall() {
[Yy]*)
find . -type f -not -name 'data' -print0 | xargs -0 -I {} rm {}
check_return $?
popd >>"${XMRSH_LOG_FILE}" 2>&1 || check_return $?
break
;;
[Nn]*)
rm -rf ./*
popd >>"${XMRSH_LOG_FILE}" 2>&1 || check_return $?
rm -rf "${XMRSH_DIR}"
check_return $?
break
;;
*) echo " Please answer yes or no." ;;
esac
done
popd || check_return $?
echo -e "${OkBullet}Uninstall complete."
}