Created
December 6, 2011 23:49
-
-
Save alOneh/1440663 to your computer and use it in GitHub Desktop.
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/sh | |
# Go in to the Geoip folder | |
cd /usr/share/GeoIP | |
# Download the new database of city | |
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | |
# Download the new database of country | |
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz | |
# Install database | |
gunzip -f GeoLiteCity.dat.gz | |
gunzip -f GeoIP.dat.gz | |
mv GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat | |
# MAJ timezone | |
pecl upgrade timezonedb | |
# Restart the server | |
apachectl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment