mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-23 17:30:02 +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
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user