re-enabled update

This commit is contained in:
Justin
2022-03-08 02:24:24 +08:00
committed by GitHub
parent 807659fd90
commit 0e35d306cc

View File

@@ -262,13 +262,8 @@ def stop():
@app.route("/update", methods=['PUT','POST'])
def update():
uptodate = os.system('sudo ./check_update.sh')
print('python:', uptodate)
print(uptodate == 'not up to date')
print(uptodate == 'up to date')
#os.system("./update.sh")
#os.system("sudo reboot now")
os.system("./update.sh")
os.system("sudo reboot now")
return index()
@app.route("/restart")