diff --git a/server.py b/server.py index 8a3b2b7..c5de418 100755 --- a/server.py +++ b/server.py @@ -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")