mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
geoip: update download script for DBIP database
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:

committed by
Jan Engelhardt

parent
4c68c774c8
commit
4b43df69f5
@@ -1,7 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rm -rf GeoLite2-Country-CSV_*
|
timestamp=$(date "+%Y-%m")
|
||||||
|
|
||||||
wget -q http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
|
wget -q "https://download.db-ip.com/free/dbip-country-lite-${timestamp}.csv.gz"
|
||||||
unzip -q GeoLite2-Country-CSV.zip
|
|
||||||
rm -f GeoLite2-Country-CSV.zip
|
zcat dbip-country-lite-${timestamp}.csv.gz > dbip-country-lite.csv
|
||||||
|
|
||||||
|
rm -f dbip-country-lite-${timestamp}.csv.gz
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Reference in New Issue
Block a user