Use .env file if it exists.

pull/6294/head
Lakin Wecker 2020-04-04 09:08:15 -06:00
parent 6a2cab0dc2
commit 37e2125662
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