1411specter (#1533)

fixing specter uninstall bug for #1411
This commit is contained in:
Christian Rotzoll 2020-09-10 20:30:39 +02:00 committed by GitHub
parent 87e479e5f5
commit 89355727f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
fi fi
source /mnt/hdd/raspiblitz.conf source /mnt/hdd/raspiblitz.conf
echo "# bonus.cryptoadvance-specter.sh $1"
# show info menu # show info menu
if [ "$1" = "menu" ]; then if [ "$1" = "menu" ]; then
@ -82,10 +83,6 @@ if [ "$1" = "status" ]; then
exit 0 exit 0
fi fi
# stop services
echo "# --> making sure the service is not running"
sudo systemctl stop cryptoadvance-specter 2>/dev/null
# switch on # switch on
if [ "$1" = "1" ] || [ "$1" = "on" ]; then if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo "# --> INSTALL Cryptoadvance Specter ***" echo "# --> INSTALL Cryptoadvance Specter ***"
@ -262,6 +259,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
if [ ${isInstalled} -eq 1 ]; then if [ ${isInstalled} -eq 1 ]; then
echo "# --> REMOVING Cryptoadvance Specter" echo "# --> REMOVING Cryptoadvance Specter"
sudo systemctl stop cryptoadvance-specter
sudo systemctl disable cryptoadvance-specter sudo systemctl disable cryptoadvance-specter
sudo rm /etc/systemd/system/cryptoadvance-specter.service sudo rm /etc/systemd/system/cryptoadvance-specter.service
sudo -u bitcoin /home/bitcoin/.specter/.env/bin/python3 -m pip uninstall --yes cryptoadvance.specter sudo -u bitcoin /home/bitcoin/.specter/.env/bin/python3 -m pip uninstall --yes cryptoadvance.specter