From a44c5574cafdc6fe8fd22ec9e058ee296a52e6ad Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 12 Feb 2020 21:04:26 -0600 Subject: [PATCH] Add tor re-install option --- .../standard/usr/bin/mynode_post_upgrade.sh | 2 -- .../standard/usr/bin/mynode_reinstall_app.sh | 23 +++++++++++-------- .../var/www/mynode/templates/settings.html | 1 + 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 22c27ccd..7013fc3a 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -414,8 +414,6 @@ fi # echo $TOR_UPGRADE_URL > $TOR_UPGRADE_URL_FILE # fi -apt-get remove -y tor -apt-get install -y tor # Enable fan control diff --git a/rootfs/standard/usr/bin/mynode_reinstall_app.sh b/rootfs/standard/usr/bin/mynode_reinstall_app.sh index f4d7bf6d..df35f975 100755 --- a/rootfs/standard/usr/bin/mynode_reinstall_app.sh +++ b/rootfs/standard/usr/bin/mynode_reinstall_app.sh @@ -19,26 +19,29 @@ elif [ "$APP" = "lnd" ]; then rm -f /home/bitcoin/.mynode/.lnd_url elif [ "$APP" = "loopd" ]; then rm -f /home/bitcoin/.mynode/.loop_url +elif [ "$APP" = "btcrpcexplorer" ]; then + rm -f /home/bitcoin/.mynode/.btcrpcexplorer_url +elif [ "$APP" = "joinmarket" ]; then + rm -f /home/bitcoin/.mynode/.joinmarket_url +elif [ "$APP" = "lndconnect" ]; then + rm -f /home/bitcoin/.mynode/.lndconnect_url elif [ "$APP" = "lndhub" ]; then rm -f /home/bitcoin/.mynode/.lndhub_url -elif [ "$APP" = "rtl" ]; then - rm -f /home/bitcoin/.mynode/.rtl_url elif [ "$APP" = "mempoolspace" ]; then rm -f /mnt/hdd/mynode/settings/mempoolspace_url systemctl stop mempoolspace docker rmi mempoolspace -elif [ "$APP" = "joinmarket" ]; then - rm -f /home/bitcoin/.mynode/.joinmarket_url -elif [ "$APP" = "whirlpool" ]; then - rm -f /home/bitcoin/.mynode/.whirlpool_url -elif [ "$APP" = "btcrpcexplorer" ]; then - rm -f /home/bitcoin/.mynode/.btcrpcexplorer_url -elif [ "$APP" = "lndconnect" ]; then - rm -f /home/bitcoin/.mynode/.lndconnect_url +elif [ "$APP" = "rtl" ]; then + rm -f /home/bitcoin/.mynode/.rtl_url +elif [ "$APP" = "tor" ]; then + apt-get remove -y tor + apt-get install -y tor elif [ "$APP" = "webssh2" ]; then rm -f /mnt/hdd/mynode/settings/webssh2_url systemctl stop webssh2 docker rmi webssh2 +elif [ "$APP" = "whirlpool" ]; then + rm -f /home/bitcoin/.mynode/.whirlpool_url else echo "UNKNOWN APP: $APP" exit 1 diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index 63dd33bf..ed8e5e1c 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -824,6 +824,7 @@ +