]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/rootfiles/core/77/update.sh
core77: Only add timezone-transition rules when needed.
[people/teissler/ipfire-2.x.git] / config / rootfiles / core / 77 / update.sh
index 0078abd941d985be4e9ad33303208896af60e47a..7e4416ab0171e4324ee369a34850fdbdc268b329 100644 (file)
@@ -399,8 +399,9 @@ if [ -e /var/ipfire/qos/enable ]; then
        /usr/local/bin/qosctrl start
 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