Files
xtables-addons/geoip/xt_geoip_dl
Jan Engelhardt 9193adc835 geoip: pipe wget right into gzip
Skip over creating temporary files.
2020-04-21 12:01:52 +02:00

6 lines
157 B
Bash
Executable File

#!/bin/sh
timestamp=$(date "+%Y-%m")
wget -q "https://download.db-ip.com/free/dbip-country-lite-$timestamp.csv.gz" -O- | \
gzip -cd >dbip-country-lite.csv