From 451c14dae906309abb5bfeccd3a8541505de5e08 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 09:09:34 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- builder/data/root/client_secrets.json | 0 builder/data/root/settings.yaml | 0 pwnagotchi/plugins/default/gdrivesync.py | 2 +- setup.py | 3 ++- 4 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 builder/data/root/client_secrets.json create mode 100644 builder/data/root/settings.yaml diff --git a/builder/data/root/client_secrets.json b/builder/data/root/client_secrets.json new file mode 100644 index 00000000..e69de29b diff --git a/builder/data/root/settings.yaml b/builder/data/root/settings.yaml new file mode 100644 index 00000000..e69de29b diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index 493c972d..09101089 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -51,7 +51,7 @@ class GdriveSync(plugins.Plugin): self.backup = False try: - gauth = GoogleAuth(settings_file="settings.yaml") + gauth = GoogleAuth(settings_file="/root/settings.yaml") gauth.Authorize() # Create GoogleDrive instance diff --git a/setup.py b/setup.py index 5591f8a4..4e28dd6f 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,8 @@ import re def install_file(source_filename, dest_filename): # do not overwrite network configuration if it exists already # https://github.com/evilsocket/pwnagotchi/issues/483 - if dest_filename.startswith('/etc/network/interfaces.d/') and os.path.exists(dest_filename): + if (dest_filename.startswith('/etc/network/interfaces.d/') or dest_filename.startswith('/root/') + and os.path.exists(dest_filename)): print("%s exists, skipping ..." % dest_filename) return