From 38f305080d0fbd704e847079ed2d74fbb5528517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 28 May 2020 19:24:26 +0200 Subject: [PATCH] Download MaxMind GeoIP database: new code for usage with license key --- bin/download_dependencies | 4 +--- bin/download_geoip2 | 12 ++++++++++++ conf.php-dist | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 bin/download_geoip2 diff --git a/bin/download_dependencies b/bin/download_dependencies index 3b18f8c2..b9275a79 100755 --- a/bin/download_dependencies +++ b/bin/download_dependencies @@ -1,5 +1,3 @@ #!/bin/sh -mkdir -p data/GeoIP -cd data/GeoIP -wget -O- http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz | tar --strip-components=1 -xvzf - +bin/download_geoip2 diff --git a/bin/download_geoip2 b/bin/download_geoip2 new file mode 100755 index 00000000..a14c32e3 --- /dev/null +++ b/bin/download_geoip2 @@ -0,0 +1,12 @@ +#!/usr/bin/php + 51.505, 'lon' => -0.09, 'zoom' => 18);