From 7be059a79b2df22ab85772b7e88b02d28ae15c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 6 Jul 2020 15:28:13 +0200 Subject: [PATCH] Download our cached version after they blocked Travis CI... --- fetch-geoip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch-geoip.sh b/fetch-geoip.sh index 964faf6b44..423fc53fd9 100755 --- a/fetch-geoip.sh +++ b/fetch-geoip.sh @@ -14,8 +14,8 @@ if [ -z "$(find . -path ./IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP -mtime -30 -print)" rm -f IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP echo "Downloading IP2Location GeoIP database." if command -v curl >/dev/null 2>&1; then - curl -s -L -O https://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP || echo "Warning: Download failed" + curl -s -L -O https://github.com/OpenRA/GeoIP-Database/releases/download/monthly/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP || echo "Warning: Download failed" else - wget -cq https://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP || echo "Warning: Download failed" + wget -cq https://github.com/OpenRA/GeoIP-Database/releases/download/monthly/IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP || echo "Warning: Download failed" fi fi