From 89c36a109b2ac67250f83281e9ba745097709496 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 2 Jul 2020 21:29:46 +0200 Subject: [PATCH] Fix working directory for update script calling service. --- berlin-corona-table.service | 1 + update.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/berlin-corona-table.service b/berlin-corona-table.service index 00e9949..92c052e 100644 --- a/berlin-corona-table.service +++ b/berlin-corona-table.service @@ -3,4 +3,5 @@ Description=Update online Berlin Corona infections table. [Service] User=plom +WorkingDirectory=/home/plom/berlin-corona-table ExecStart=/bin/sh -c '~/berlin-corona-table/update.sh' diff --git a/update.sh b/update.sh index 1bfd38b..2513827 100755 --- a/update.sh +++ b/update.sh @@ -2,7 +2,7 @@ set -e CSV_URL=https://www.berlin.de/lageso/_assets/gesundheit/publikationen/corona/bezirkstabelle.csv -table_path=/home/plom/berlin-corona-table/daily_infections_table.txt +table_path=daily_infections_table.txt # If we don't have a table file yet, we need to provide its header. header=" CW FK Li MH Mi Ne Pa Re Sp SZ TS TK sum" -- 2.30.2