#!/bin/bash
set -e
source /bd_build/buildconfig
set -x

cd /tmp

YEAR=$(date +'%Y')
MONTH=$(date +'%m')

wget --quiet -O dbip-city-lite.mmdb.gz "https://download.db-ip.com/free/dbip-city-lite-${YEAR}-${MONTH}.mmdb.gz"
gunzip dbip-city-lite.mmdb.gz

mv dbip-city-lite.mmdb /var/azuracast/dbip/

chown -R azuracast:azuracast /var/azuracast/dbip

#!/bin/bash
set -e
source /bd_build/buildconfig
set -x

cd /tmp

wget --quiet -O dbip-city-lite.mmdb.gz https://download.db-ip.com/free/dbip-city-lite-2020-03.mmdb.gz
gunzip dbip-city-lite.mmdb.gz

mv dbip-city-lite.mmdb /var/azuracast/dbip/

chown -R azuracast:azuracast /var/azuracast/dbip

--- 
+++ 
@@ -5,10 +5,7 @@
 
 cd /tmp
 
-YEAR=$(date +'%Y')
-MONTH=$(date +'%m')
-
-wget --quiet -O dbip-city-lite.mmdb.gz "https://download.db-ip.com/free/dbip-city-lite-${YEAR}-${MONTH}.mmdb.gz"
+wget --quiet -O dbip-city-lite.mmdb.gz https://download.db-ip.com/free/dbip-city-lite-2020-03.mmdb.gz
 gunzip dbip-city-lite.mmdb.gz
 
 mv dbip-city-lite.mmdb /var/azuracast/dbip/
Update DBIP in Docker image to always use current year/month when building.

