re-enabled update

This commit is contained in:
Justin 2022-03-08 02:24:24 +08:00 committed by GitHub
parent 807659fd90
commit 0e35d306cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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