Created
April 5, 2017 11:04
-
-
Save askaidau/5bfd44950b3f602644d6c8e7a3d525c1 to your computer and use it in GitHub Desktop.
Update GeoIP data files automatically
This file contains hidden or 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 | |
cd /usr/share/GeoIP | |
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz || { echo 'Could not download GeoLiteCountry, exiting.' ; exit 1; } | |
#wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz || { echo 'Could not download GeoLiteCity, exiting.' ; exit 1; } | |
gunzip -f GeoIP.dat.gz | |
#gunzip -f GeoLiteCity.dat.gz | |
echo "y" | |
#|mv GeoLiteCity.dat GeoIPCity.dat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://forum.piwik.org/t/how-to-automatically-update-your-geolite-databases-linux/12098