Adding wget support to fetch scripts
This commit is contained in:
6
thirdparty/fetch-geoip-db.sh
vendored
6
thirdparty/fetch-geoip-db.sh
vendored
@@ -13,6 +13,10 @@ filename="GeoLite2-Country.mmdb.gz"
|
||||
if [ ! -e $filename ] || [ -n "$(find . -name $filename -mtime +30 -print)" ]; then
|
||||
rm -f $filename
|
||||
echo "Updating GeoIP country database from MaxMind."
|
||||
curl -s -L -O http://geolite.maxmind.com/download/geoip/database/$filename
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O http://geolite.maxmind.com/download/geoip/database/$filename
|
||||
else
|
||||
wget -cq http://geolite.maxmind.com/download/geoip/database/$filename
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user