From bfc09f0ac8a802da281d93a32ca910f63f6f8a5a Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Thu, 21 Dec 2023 04:36:39 +0000 Subject: [PATCH] Fixes --- backend/python/backend.py | 2 +- simplepwa/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/python/backend.py b/backend/python/backend.py index 8754e49..dfbb03e 100644 --- a/backend/python/backend.py +++ b/backend/python/backend.py @@ -59,7 +59,7 @@ def poweroff(): @app.route('/update',methods = ['GET']) def update(): - os.popen("cd /home/pi/AviationAssistantV2 && git pull && sudo rm -r /var/www/html/* && sudo cp -r simplepwa/* /var/www/html && sudo systemctl restart backend.service") + os.popen("cd /home/pi/AviationAssistantV2 && git pull && sudo rm -r /var/www/html/* && sudo cp -r /home/pi/AviationAssistantV2/simplepwa/* /var/www/html && sudo systemctl restart backend.service") return "OK" @app.after_request diff --git a/simplepwa/index.html b/simplepwa/index.html index ca36163..75f18ee 100644 --- a/simplepwa/index.html +++ b/simplepwa/index.html @@ -6,6 +6,7 @@ Aviation Assistant V2 +