From db5b5de9a9cbb53b713cbc95a80021e458a5041f Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 16 Apr 2015 22:00:51 +0200 Subject: [PATCH] Core90: Update crontab. --- config/rootfiles/core/90/update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/rootfiles/core/90/update.sh b/config/rootfiles/core/90/update.sh index 9a83ac403f..5e09240bcd 100644 --- a/config/rootfiles/core/90/update.sh +++ b/config/rootfiles/core/90/update.sh @@ -175,6 +175,16 @@ fi # Download/Update GeoIP databases. /usr/local/bin/xt_geoip_update +# Update crontab +grep -q /usr/local/bin/xt_geoip_update /var/spool/cron/root.orig || cat <> /var/spool/cron/root.orig + +# Update GeoIP database once a month. +%monthly,random * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/xt_geoip_update >/dev/null 2>&1 +EOF + +fcrontab -z &>/dev/null + + # Update Language cache perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" -- 2.39.2