Update automatically every month GeoLite in to Centova
Create a text file and named geo.sh
Then paste the following code:
1 2 3 4 5 6 7 8 |
#!/bin/sh cd /tmp rm GeoLiteCity.dat.gz -f wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip GeoLiteCity.dat.gz mv GeoLiteCity.dat /home/centovacast/system/geoip/ cd /home/centovacast/system/geoip/ chown centovacast:centovacast GeoLiteCity.dat |
Drop the geo.sh in
1 |
/etc/cron.monthly |
It is tested on Centos 5 and directadmin
GeoLite source: