mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-12 16:52:14 -04:00
uninstall fixes
This commit is contained in:
parent
ddfa6e596a
commit
83d4d41092
2 changed files with 10 additions and 10 deletions
1
.env
1
.env
|
@ -10,7 +10,6 @@ MONEROD_TAG=latest
|
||||||
MONEROD_RPC_PORT=18081
|
MONEROD_RPC_PORT=18081
|
||||||
MONEROD_RESTRICTED_RPC_PORT=18089
|
MONEROD_RESTRICTED_RPC_PORT=18089
|
||||||
MONEROD_P2P_PORT=18080
|
MONEROD_P2P_PORT=18080
|
||||||
#MONEROD_EXTRA_PARAMS=--prune-blockchain
|
|
||||||
MONEROD_EXTRA_PARAMS=
|
MONEROD_EXTRA_PARAMS=
|
||||||
MONEROD_accessControlAllowOriginList=*
|
MONEROD_accessControlAllowOriginList=*
|
||||||
|
|
||||||
|
|
19
uninstall
19
uninstall
|
@ -7,21 +7,21 @@
|
||||||
Off='\033[0m' # Text Reset
|
Off='\033[0m' # Text Reset
|
||||||
|
|
||||||
# Regular Colors
|
# Regular Colors
|
||||||
Red='\033[0;31m' # Red
|
Red='\033[0;31m' # Red
|
||||||
Green='\033[0;32m' # Green
|
Green='\033[0;32m' # Green
|
||||||
Yellow='\033[0;33m' # Yellow
|
#Yellow='\033[0;33m' # Yellow
|
||||||
Purple='\033[0;35m' # Purple
|
#Purple='\033[0;35m' # Purple
|
||||||
White='\033[0;37m' # White
|
White='\033[0;37m' # White
|
||||||
|
|
||||||
# Background
|
# Background
|
||||||
On_Black='\033[40m' # Black
|
On_Black='\033[40m' # Black
|
||||||
|
|
||||||
OkBullet="${Green}${On_Black}:: ${White}${On_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}"
|
ErrBullet="${Red}${On_Black}:: ${White}${On_Black}"
|
||||||
Ok="${Green}${On_Black} ok.${Off}"
|
Ok="${Green}${On_Black} ok.${Off}"
|
||||||
Fail="${Red}${On_Black} failed!${Off}"
|
Fail="${Red}${On_Black} failed!${Off}"
|
||||||
Nok="${Yellow}${On_Black} nok.${Off}"
|
#Nok="${Yellow}${On_Black} nok.${Off}"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Vars #
|
# Vars #
|
||||||
|
@ -65,17 +65,18 @@ uninstall() {
|
||||||
[Yy]*)
|
[Yy]*)
|
||||||
find . -type f -not -name 'data' -print0 | xargs -0 -I {} rm {}
|
find . -type f -not -name 'data' -print0 | xargs -0 -I {} rm {}
|
||||||
check_return $?
|
check_return $?
|
||||||
|
popd >>"${XMRSH_LOG_FILE}" 2>&1 || check_return $?
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
[Nn]*)
|
[Nn]*)
|
||||||
rm -rf ./*
|
popd >>"${XMRSH_LOG_FILE}" 2>&1 || check_return $?
|
||||||
|
rm -rf "${XMRSH_DIR}"
|
||||||
check_return $?
|
check_return $?
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*) echo " Please answer yes or no." ;;
|
*) echo " Please answer yes or no." ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
popd || check_return $?
|
|
||||||
echo -e "${OkBullet}Uninstall complete."
|
echo -e "${OkBullet}Uninstall complete."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue