home · contact · privacy
Fix working directory for update script calling service.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 2 Jul 2020 19:29:46 +0000 (21:29 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 2 Jul 2020 19:29:46 +0000 (21:29 +0200)
berlin-corona-table.service
update.sh

index 00e99494fb16b105037bf243a83b490099a9d2a7..92c052e2a7c80108f7b186c66b38495488a911d9 100644 (file)
@@ -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'
index 1bfd38b29e667b9ed4b079afc75a347fb467ded4..251382711a2637635d4c22184496b2e7e8bf3015 100755 (executable)
--- 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"