More install Dojo refactor

This commit is contained in:
Taylor Helsper 2021-05-17 20:56:17 -05:00
parent 30acdbea1f
commit f5e8c92891
2 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,7 @@ elif [ "$APP" = "webssh2" ]; then
docker rmi webssh2 docker rmi webssh2
elif [ "$APP" = "dojo" ]; then elif [ "$APP" = "dojo" ]; then
rm -f /mnt/hdd/mynode/settings/dojo_url 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/ cd /mnt/hdd/mynode/dojo/docker/my-dojo/
# Stop and uninstall # Stop and uninstall

View File

@ -29,6 +29,18 @@ if [ "$APP" = "bos" ]; then
npm uninstall -g balanceofsatoshis npm uninstall -g balanceofsatoshis
elif [ "$APP" = "btcrpcexplorer" ]; then elif [ "$APP" = "btcrpcexplorer" ]; then
rm -rf /opt/mynode/btc-rpc-explorer 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 elif [ "$APP" = "lndhub" ]; then
rm -rf /opt/mynode/LndHub rm -rf /opt/mynode/LndHub
elif [ "$APP" = "rtl" ]; then elif [ "$APP" = "rtl" ]; then