mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 20:26:38 +02:00
geoip: pipe wget right into gzip
Skip over creating temporary files.
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
#!/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
|
||||
wget -q "https://download.db-ip.com/free/dbip-country-lite-$timestamp.csv.gz" -O- | \
|
||||
gzip -cd >dbip-country-lite.csv
|
||||
|
Reference in New Issue
Block a user