We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fca2c5 commit 313bf19Copy full SHA for 313bf19
frame.py
@@ -152,6 +152,14 @@ def show_error(e):
152
'''
153
return message, code
154
155
+@app.route('/update/force', methods=['GET'])
156
+def force_update():
157
+ if os.path.exists('/root/photoframe/update.sh'):
158
+ p = subprocess.Popen('/bin/bash /root/photoframe/update.sh 2>&1 | logger -t forced_update', shell=True)
159
+ return 'Update in process', 200
160
+ else:
161
+ return 'Cannot find update tool', 404
162
+
163
@app.route('/debug', methods=['GET'], defaults={'all' : False})
164
@app.route('/debug/all', methods=['GET'], defaults={'all' : True})
165
def show_logs(all):
0 commit comments