From: Stefan Schantl Date: Thu, 16 Apr 2015 20:00:51 +0000 (+0200) Subject: Core90: Update crontab. X-Git-Tag: v2.17-core91~128^2 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=db5b5de9a9cbb53b713cbc95a80021e458a5041f Core90: Update crontab. --- 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"