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