Did it again

This commit is contained in:
2023-12-21 04:30:25 +00:00
parent d4fdbf2718
commit e70f772eb2
+1 -1
View File
@@ -58,7 +58,7 @@ def poweroff():
return "OK"
@app.route('/update',methods = ['GET'])
def poweroff():
def update():
os.popen("cd /home/pi/AviationAssistant && git pull && sudo rm -r /var/www/html/* && sudo cp -r simplepwa/* /var/www/html && sudo systemctl restart backend.service")
return "OK"