Browse Source

umstellung auf GMT+2, bugfix

master
Roman Steiner 4 years ago
parent
commit
b1c7976614
  1. 5
      image/Dockerfile
  2. 6
      image/collect.sh

5
image/Dockerfile

@ -1,6 +1,9 @@
FROM debian:bullseye-slim FROM debian:bullseye-slim
RUN apt-get update; apt-get install -y --no-install-recommends ssh ca-certificates wget cron git RUN apt-get update; apt-get install -y --no-install-recommends rsyslog vim ssh ca-certificates wget cron git
# set local timezone for Vienna
RUN ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
# configure GIT # configure GIT
RUN git config --global user.email "" ;\ RUN git config --global user.email "" ;\

6
image/collect.sh

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
echo ----- automatic update $(date +%F-%H-%M) -------- echo ----- automatic update $(date +%F-%H-%M) --------
cd /root/git/ cd /root/git/
git pull git pull
# download Covid-Cases for Austria based on age groupes # download Covid-Cases for Austria based on age groupes
wget --output-document=./CovidFaelle_Altersgruppe-$(date +%F-%H-%M).csv https://covid19-dashboard.ages.at/data/CovidFaelle_Altersgruppe.csv 2>&1 wget --output-document=./CovidFaelle_Altersgruppe-$(date +%F-%H-%M).csv https://covid19-dashboard.ages.at/data/CovidFaelle_Altersgruppe.csv 2>&1
git add data git add *
git commit -m 'automatic update' git commit -m 'automatic update'
git push origin git push origin
echo ------------------------------------------------ echo ------------------------------------------------
echo echo

Loading…
Cancel
Save