Created
May 2, 2021 20:23
-
-
Save rg443a/73a9e4d330e737763bc353b8f28f39f7 to your computer and use it in GitHub Desktop.
dbip mmdb update
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
#!/usr/bin/env bash | |
cd /usr/share/GeoIP; | |
curl -LRO https://download.db-ip.com/free/dbip-country-lite-$(date +%Y-%m).mmdb.gz; | |
curl -LRO https://download.db-ip.com/free/dbip-city-lite-$(date +%Y-%m).mmdb.gz; | |
curl -LRO https://download.db-ip.com/free/dbip-asn-lite-$(date +%Y-%m).mmdb.gz; | |
gunzip dbip-$(date +%Y-%m).mmdb.gz; | |
ln -sf dbip-country-lite-$(date +%Y-%m).mmdb dbip-country-lite.mmdb; | |
ln -sf dbip-city-lite-$(date +%Y-%m).mmdb dbip-city-lite.mmdb; | |
ln -sf dbip-asn-lite-$(date +%Y-%m).mmdb dbip-asn-lite.mmdb; | |
geoipupdate -v; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment