From f5e8c92891262eea2e31c5a60a158b5c086a5192 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Mon, 17 May 2021 20:56:17 -0500 Subject: [PATCH] More install Dojo refactor --- rootfs/standard/usr/bin/mynode_reinstall_app.sh | 1 + rootfs/standard/usr/bin/mynode_uninstall_app.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_reinstall_app.sh b/rootfs/standard/usr/bin/mynode_reinstall_app.sh index 46e7f2c5..66e8dc2a 100755 --- a/rootfs/standard/usr/bin/mynode_reinstall_app.sh +++ b/rootfs/standard/usr/bin/mynode_reinstall_app.sh @@ -48,6 +48,7 @@ elif [ "$APP" = "webssh2" ]; then docker rmi webssh2 elif [ "$APP" = "dojo" ]; then rm -f /mnt/hdd/mynode/settings/dojo_url + rm -f /mnt/hdd/mynode/settings/mynode_dojo_install cd /mnt/hdd/mynode/dojo/docker/my-dojo/ # Stop and uninstall diff --git a/rootfs/standard/usr/bin/mynode_uninstall_app.sh b/rootfs/standard/usr/bin/mynode_uninstall_app.sh index ae132d9a..e96e1680 100755 --- a/rootfs/standard/usr/bin/mynode_uninstall_app.sh +++ b/rootfs/standard/usr/bin/mynode_uninstall_app.sh @@ -29,6 +29,18 @@ if [ "$APP" = "bos" ]; then npm uninstall -g balanceofsatoshis elif [ "$APP" = "btcrpcexplorer" ]; then rm -rf /opt/mynode/btc-rpc-explorer +elif [ "$APP" = "dojo" ]; then + rm -f /mnt/hdd/mynode/settings/dojo_url + rm -f /mnt/hdd/mynode/settings/mynode_dojo_install + cd /mnt/hdd/mynode/dojo/docker/my-dojo/ + + # Stop and uninstall + yes | ./dojo.sh uninstall + + # Reset config files + cd ~ + rm -rf /opt/download/dojo + rm -rf /mnt/hdd/mynode/dojo elif [ "$APP" = "lndhub" ]; then rm -rf /opt/mynode/LndHub elif [ "$APP" = "rtl" ]; then