core77: Only add timezone-transition rules when needed.

This commit is contained in:
Michael Tremer
2014-05-07 11:54:53 +02:00
parent 6e283deb2d
commit 1349c45777

View File

@@ -401,7 +401,7 @@ fi
chown cron:cron /var/spool/cron
# Update crontab
cat <<EOF >> /var/spool/cron/root.orig
grep -q timezone-transition /var/spool/cron/root.orig || cat <<EOF >> /var/spool/cron/root.orig
# Re-read firewall rules every Sunday in March, October and November to take care of daylight saving time
00 3 * 3 0 /usr/local/bin/timezone-transition /usr/local/bin/firewallctrl