Created
October 22, 2022 06:41
-
-
Save SanjaySRocks/67f3e39d4418d845e07dd47cb1f48dca to your computer and use it in GitHub Desktop.
Install latest geocitylity.mmdb file
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 characters
| #!/bin/bash | |
| API_KEY="<YOUR API KEY>" | |
| API_URL="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$API_KEY&suffix=tar.gz" | |
| DEST="/var/lib/pterodactyl/volumes/7cf63022-bb15-45c6-b0e0-e2bb9e10dd7e/csgo/addons/sourcemod/configs/geoip/" | |
| FILE=GeoLite2-City | |
| FILE_EXT=.tar.gz | |
| wget -N -q $API_URL -O $FILE$FILE_EXT | |
| tar xzf $FILE$FILE_EXT | |
| cp -r ${FILE}_*/$FILE.mmdb $DEST | |
| # Clean Up | |
| rm -rf GeoLite2-City_* | |
| rm GeoLite2-City.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment