Created
January 9, 2019 21:00
-
-
Save theel0ja/50ab6ad5e203812caa3a0bb96bb19827 to your computer and use it in GitHub Desktop.
Revisions
-
theel0ja created this gist
Jan 9, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ rm -rf dist/ *.tar.gz GeoLite2-*/ wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz tar -xzvf GeoLite2-City.tar.gz tar -xzvf GeoLite2-Country.tar.gz tar -xzvf GeoLite2-ASN.tar.gz rm *.tar.gz mkdir dist mv */*.mmdb dist/ rm -rf GeoLite2-*/ sudo rm -rf /usr/share/GeoIP/GeoLite2-City.tar.gz /usr/share/GeoIP/GeoLite2-Country.tar.gz /usr/share/GeoIP/GeoLite2-ASN.tar.gz sudo find dist/ -type f -name "*.mmdb" -exec mv {} /usr/share/GeoIP/ \;