Get the new version of the GeoIP data on every run.

This commit is contained in:
Kevin Fenzi 2015-10-08 22:34:01 +00:00
parent e0f003c8bc
commit c4d939b8c6

View file

@ -10,7 +10,9 @@
# if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301, USA.
[ -f GeoIPCountryCSV.zip ] || wget -q -T 5 -t 1 http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
rm -f /root/GeoIPCountryCSV.zip
wget -q -T 5 -t 1 http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
unzip -q GeoIPCountryCSV.zip || exit 1
awk -F \" '{print $10","$6","$8}' GeoIPCountryWhois.csv > cbe.csv