From 3770f20a5efcb8d02dc75aeed88ec45baa628f0d Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 24 Jul 2022 10:52:59 +1000 Subject: [PATCH] Unifying teh default TIMEZONE in cron and pialert.conf as Europe/Berlin --- dockerfiles/start.sh | 3 ++- install/pialert.cron | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerfiles/start.sh b/dockerfiles/start.sh index 3ab58572..247ba2d4 100755 --- a/dockerfiles/start.sh +++ b/dockerfiles/start.sh @@ -3,7 +3,8 @@ # if custom variables not set we do not need to do anything if [ -n "${TZ}" ]; then - sed -ie "s|Europe/London|${TZ}|g" /home/pi/pialert/install/pialert.cron + sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/install/pialert.cron + sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/config/pialert.conf crontab < /home/pi/pialert/install/pialert.cron fi if [ -n "${PORT}" ]; then diff --git a/install/pialert.cron b/install/pialert.cron index 4b4ece0b..ee48fe30 100644 --- a/install/pialert.cron +++ b/install/pialert.cron @@ -7,7 +7,7 @@ # Puche 2021 pi.alert.application@gmail.com GNU GPLv3 #------------------------------------------------------------------------------- -TZ=Europe/London +TZ=Europe/Berlin 0 3 * * 1 python /home/pi/pialert/back/pialert.py update_vendors >/home/pi/pialert/log/pialert.vendors.log 2>&1 */3 * * * * python /home/pi/pialert/back/pialert.py internet_IP >/home/pi/pialert/log/pialert.IP.log 2>&1