From: Philip Prindeville Date: Mon, 20 Apr 2020 00:11:47 +0000 (+0200) Subject: geoip: update download script for DBIP database X-Git-Tag: v3.10~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b43df69f52589931ef8f1b390620eb1ae7ddd68;p=thirdparty%2Fxtables-addons.git geoip: update download script for DBIP database Signed-off-by: Philip Prindeville --- diff --git a/geoip/xt_geoip_dl b/geoip/xt_geoip_dl index 1de6044..91aa95b 100755 --- a/geoip/xt_geoip_dl +++ b/geoip/xt_geoip_dl @@ -1,7 +1,11 @@ #!/bin/sh -rm -rf GeoLite2-Country-CSV_* +timestamp=$(date "+%Y-%m") -wget -q http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip -unzip -q GeoLite2-Country-CSV.zip -rm -f GeoLite2-Country-CSV.zip +wget -q "https://download.db-ip.com/free/dbip-country-lite-${timestamp}.csv.gz" + +zcat dbip-country-lite-${timestamp}.csv.gz > dbip-country-lite.csv + +rm -f dbip-country-lite-${timestamp}.csv.gz + +exit 0