|
|
@ -136,12 +136,13 @@ def pull():
|
|
|
|
if request.method == 'POST':
|
|
|
|
if request.method == 'POST':
|
|
|
|
subprocess.call(['sh', '/home/kamo/public_html/update.sh'])
|
|
|
|
subprocess.call(['sh', '/home/kamo/public_html/update.sh'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print('Request for rendering')
|
|
|
|
|
|
|
|
render_home()
|
|
|
|
|
|
|
|
|
|
|
|
with open('/home/kamo/public_html/log.txt', 'a') as f:
|
|
|
|
with open('/home/kamo/public_html/log.txt', 'a') as f:
|
|
|
|
f.write(request.form['payload'])
|
|
|
|
f.write(request.form['payload'])
|
|
|
|
print(request.form['payload'])
|
|
|
|
print(request.form['payload'])
|
|
|
|
|
|
|
|
|
|
|
|
render_home()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 'Updated'
|
|
|
|
return 'Updated'
|
|
|
|
return 'GET method not supported'
|
|
|
|
return 'GET method not supported'
|
|
|
|
|
|
|
|
|
|
|
|