Skip to content

Commit

Permalink
fix #110
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Jan 7, 2019
1 parent 37d5709 commit f964936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def updateFromPackage():
os.system('sudo bash /home/pi/clean-update.sh')
file_to_upload = connexion.request.files['file_to_upload']
file_to_upload.save(os.path.join('/home/pi/', 'update.tar'))
os.system('sudo coderbot_update /home/pi/update.tar && sudo reboot')
os.system('sudo reboot')
return 200


Expand Down Expand Up @@ -218,4 +218,4 @@ def resetDefaultPrograms():
if filename.endswith(".json"):
with open("data/defaults/programs/" + filename) as p:
q = p.read()
programs.insert(json.loads(q))
programs.insert(json.loads(q))

0 comments on commit f964936

Please sign in to comment.