diff --git a/souptxt.py b/souptxt.py index 3899d8a..ad8f990 100644 --- a/souptxt.py +++ b/souptxt.py @@ -47,7 +47,7 @@ def txt_list(): return writings def render_list(): - subprocess.run(['update.sh'], shell=True) + subprocess.run(['sh', '/var/www/souptxt/update.sh'], shell=True) with open('list.html', 'w+') as f: f.write(render_template('home.html', writings=txt_list())) diff --git a/update.sh b/update.sh index 9f6acad..63bcf9a 100644 --- a/update.sh +++ b/update.sh @@ -1,3 +1,4 @@ +cd /var/www/souptxt/ rm -rf txt git clone https://git.xpub.nl/kamo/txt.git txt cd txt