#!/bin/sh
mkdir -p /tmp/download
wget -O- http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz | tar -zxvf - -C /tmp/download
find /tmp/download -name 'GeoLite2-City.mmdb' -exec cp {} /data \;
rm -r /tmp/download
