This commit is contained in:
2023-12-21 04:36:39 +00:00
parent 76fc86d9d5
commit bfc09f0ac8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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