From a09415df67cf8e40d34594f2c4d9394b1913d91c Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 15 Oct 2023 22:35:27 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index e39ebf22..2180846a 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -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 ...'})