Update script for GeoIP GeoLite database.
To install LiteGeoIP update, a single command necessary :
wget https://raw.github.com/Mibou/litegeoipupdate/master/litegeoipupdate.sh -O /usr/local/bin/litegeoipupdate
You can then edit the GEOIPDIR
variables to fit your needs in /usr/local/bin/litegeoipupdate
.
To run the update manualy, you can launch the command /usr/local/bin/litegeoipupdate
or directly litegeoipupdate
if /usr/local/bin
is in your PATH
environment variable.
To fully automate this process on Linux or Unix, use a crontab file like :
# Top of crontab [email protected] MAILFROM="You you <[email protected]>" 0 4 * * 3 root /usr/local/bin/litegeoipupdate &>/dev/null # End of crontab
This Cron will run the update every wednesday at 4:00 am and send an email to MAILTO if there is any problem.