Better docker reset

This commit is contained in:
Taylor Helsper 2020-03-24 22:28:42 -05:00
parent d446ca8b43
commit 6b6369b7b7
2 changed files with 7 additions and 2 deletions

View File

@ -59,8 +59,9 @@ elif [ "$APP" = "dojo" ]; then
yes | ./dojo.sh uninstall
# Reset config files
rm -f ./conf/docker-node.conf
rm -f ./conf/docker-mysql.conf
cd ~
rm -rf /opt/mynode/.dojo
rm -rf /opt/mynode/dojo
else
echo "UNKNOWN APP: $APP"
exit 1

View File

@ -394,6 +394,10 @@ def reset_docker():
os.system("rm -f /mnt/hdd/mynode/settings/mempoolspace_url")
os.system("rm -f /mnt/hdd/mynode/settings/dojo_url")
# Delete Dojo files
os.system("rm -rf /opt/mynode/.dojo")
os.system("rm -rf /opt/mynode/dojo")
os.system("sync")
reboot_device()