mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
core77: Only add timezone-transition rules when needed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user