Added GeoIP Organisational data (#2099)

This commit is contained in:
Karl Stoney 2018-02-15 22:10:20 +00:00 committed by Manuel Alejandro de Brito Fontes
parent 9bb9011e57
commit 769f11df60
2 changed files with 3 additions and 0 deletions

View file

@ -98,9 +98,11 @@ fi
# download GeoIP databases
wget -O /etc/nginx/GeoIP.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz || { echo 'Could not download GeoLiteCountry, exiting.' ; exit 1; }
wget -O /etc/nginx/GeoLiteCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz || { echo 'Could not download GeoLiteCity, exiting.' ; exit 1; }
wget -O /etc/nginx/GeoIPASNum.dat.gz http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz || { echo 'Could not download GeoLiteOrg, exiting.' ; exit 1; }
gunzip /etc/nginx/GeoIP.dat.gz
gunzip /etc/nginx/GeoLiteCity.dat.gz
gunzip /etc/nginx/GeoIPASNum.dat.gz
mkdir --verbose -p "$BUILD_PATH"
cd "$BUILD_PATH"