Files
xtables-addons/geoip/xt_geoip_dl
Philip Prindeville 4b43df69f5 geoip: update download script for DBIP database
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2020-04-21 12:00:50 +02:00

12 lines
240 B
Bash
Executable File

#!/bin/sh
timestamp=$(date "+%Y-%m")
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