Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-15 22:35:27 +02:00
parent c95cabe5ef
commit a09415df67

View File

@ -107,6 +107,7 @@ class GdriveSync(plugins.Plugin):
zip_ref.extractall('/')
self.status.update()
os.remove("/backup")
# Reboot so we can start opwngrid with the backup id
pwnagotchi.reboot()
@ -195,6 +196,7 @@ class GdriveSync(plugins.Plugin):
# Cleanup the local zip file
os.remove(zip_file_path)
os.remove("/backup")
self.status.update()
display = agent.view()
display.update(force=True, new_data={'Backing up to gdrive ...'})