Created
December 30, 2013 22:23
-
-
Save avantassel/8189252 to your computer and use it in GitHub Desktop.
Update the GeoLiteCity dat from maxmind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir="/var/www/geoip"; | |
# change to dir | |
cd ${dir} | |
#download the dat file from maxmind | |
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | |
#unzip and overwrite the .dat file | |
gunzip -dfq GeoLiteCity.dat.gz | |
echo "Updated GeoLiteCity from maxmind.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment