X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F90%2Fupdate.sh;fp=config%2Frootfiles%2Fcore%2F90%2Fupdate.sh;h=5e09240bcd74d4d4144b4b44e7f4f4e79f9996d7;hp=9a83ac403f86599c352e36371b15475b124f5889;hb=db5b5de9a9cbb53b713cbc95a80021e458a5041f;hpb=46d3a4cb16ea09393fa141f56478e7d1d247b67c 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"