core77: Only add timezone-transition rules when needed.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 May 2014 09:54:53 +0000 (11:54 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 May 2014 09:54:53 +0000 (11:54 +0200)
config/rootfiles/core/77/update.sh

index e19237f..7e4416a 100644 (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