mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 04:35:12 +02:00

The download URL for the GeoLite2 DBs has changed and includes a licence key. Update the download script to read the key from file or stdin and use the correct URL. Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
17 lines
404 B
Bash
Executable File
17 lines
404 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -eq 1 ]; then
|
|
exec <$1
|
|
elif [ $# -ne 0 ]; then
|
|
echo $(basename $0) [ licence_key_file ] 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
read licence_key
|
|
|
|
rm -rf GeoLite2-Country-CSV_*
|
|
|
|
wget -q -OGeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${licence_key}&suffix=zip"
|
|
unzip -q GeoLite2-Country-CSV.zip
|
|
rm -f GeoLite2-Country-CSV.zip
|