Merge pull request #6294 from lakinwecker/geoip-from-env

Use .env file if it exists.
pull/6298/head
Thibault Duplessis 2020-04-04 10:55:35 -06:00 committed by GitHub
commit fa587da2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh -e
# Use .env file, if it exists.
if test -f .env; then
export $(egrep -v '^#' .env | xargs)
fi
mkdir -p data
cd data
curl https://download.maxmind.com/app/geoip_download\?edition_id\=GeoLite2-City\&license_key\=$MAXMIND_KEY\&suffix\=tar.gz -o GeoLite2-City.mmdb.tar.gz