mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-12-06 08:03:53 +01:00
geoip: pipe wget right into gzip
Skip over creating temporary files.
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
timestamp=$(date "+%Y-%m")
|
timestamp=$(date "+%Y-%m")
|
||||||
|
wget -q "https://download.db-ip.com/free/dbip-country-lite-$timestamp.csv.gz" -O- | \
|
||||||
wget -q "https://download.db-ip.com/free/dbip-country-lite-${timestamp}.csv.gz"
|
gzip -cd >dbip-country-lite.csv
|
||||||
|
|
||||||
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