]>
git.ipfire.org Git - people/jschlag/pbs.git/blob - src/tools/update-geoip-database.sh
3 URL
="http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz"
8 if ! wget
"${URL}" -O "${tmpfile}"; then
9 echo "Could not download the database file" >&2
15 # Extract database from tarball
16 if ! tar xvOf
"${tmpfile}" "*/GeoLite2-Country.mmdb" > src
/geoip
/GeoLite2-Country.mmdb
; then
17 echo "Could not extract the database" >&2