mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-24 01:33:24 +00:00
Better docker reset
This commit is contained in:
parent
d446ca8b43
commit
6b6369b7b7
|
@ -59,8 +59,9 @@ elif [ "$APP" = "dojo" ]; then
|
||||||
yes | ./dojo.sh uninstall
|
yes | ./dojo.sh uninstall
|
||||||
|
|
||||||
# Reset config files
|
# Reset config files
|
||||||
rm -f ./conf/docker-node.conf
|
cd ~
|
||||||
rm -f ./conf/docker-mysql.conf
|
rm -rf /opt/mynode/.dojo
|
||||||
|
rm -rf /opt/mynode/dojo
|
||||||
else
|
else
|
||||||
echo "UNKNOWN APP: $APP"
|
echo "UNKNOWN APP: $APP"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -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/mempoolspace_url")
|
||||||
os.system("rm -f /mnt/hdd/mynode/settings/dojo_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")
|
os.system("sync")
|
||||||
reboot_device()
|
reboot_device()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user