Created
March 27, 2019 22:36
-
-
Save d1str0/e9967dfc52d1e0798be5bc914911f0f1 to your computer and use it in GitHub Desktop.
chmod +x update-geolite2.sh && ./update-geolite2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /opt/ | |
mkdir GeoLite2-City | |
wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -O GeoLite2-City.tar.gz | |
tar xvf GeoLite2-City.tar.gz -C GeoLite2-City --strip-components 1 | |
mv GeoLite2-City/GeoLite2-City.mmdb ./ | |
mkdir GeoLite2-ASN | |
wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz -O GeoLite2-ASN.tar.gz | |
tar xvf GeoLite2-ASN.tar.gz -C GeoLite2-ASN --strip-components 1 | |
mv GeoLite2-ASN/GeoLite2-ASN.mmdb ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment