re-enabled update
This commit is contained in:
parent
807659fd90
commit
0e35d306cc
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user