From b7d6dc32f1c06db1e86fc10df207d416ee2f457f Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 19 Nov 2023 16:57:53 +0100 Subject: [PATCH] auto-update.py: Added aarch64 check for pwngrid/bettercap Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/auto-update.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index e69eb46f..91ed99e0 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -129,12 +129,10 @@ def install(display, update): logging.info("[update] stopping %s ..." % update['service']) os.system("service %s stop" % update['service']) - os.system("service pwnagotchi stop") os.system("mv %s %s" % (source_path, dest_path)) - os.system("chmod +x %s/*" % dest_path) + os.system("chmod +x /usr/local/bin/%s" % name) logging.info("[update] restarting %s ..." % update['service']) os.system("service %s start" % update['service']) - os.system("service pwnagotchi start") else: if not os.path.exists(source_path): source_path = "%s-%s" % (source_path, update['available'])