From: Christian Heller Date: Thu, 2 Jul 2020 19:29:46 +0000 (+0200) Subject: Fix working directory for update script calling service. X-Git-Url: https://plomlompom.com/repos/balance?a=commitdiff_plain;h=89c36a109b2ac67250f83281e9ba745097709496;p=berlin-corona-table Fix working directory for update script calling service. --- 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"