Files
zeekay 3b3c6ab0c4 fix: the city database comes from a host that exists
The rename turned upstream's own CDN into mmdbcdn.insights.net, a name nobody
serves, and four images fetched their GeoLite2 city database from it — each one
failing the moment that layer ran. They now read the same DB-IP source the root
Dockerfile already used, so there is ONE way to get this file; the decompressor
follows the format (gzip, not brotli). Verified against the live URL: 200, and
the stream gunzips.
2026-08-06 23:29:20 -07:00

10 lines
238 B
Bash
Executable File

#!/bin/bash
if [[ ! -f mmdb.db ]]; then
sudo apt-get install -y curl ca-certificates brotli
curl -sS -L "https://download.db-ip.com/free/dbip-city-lite-$(date +%Y-%m).mmdb.gz" | gunzip > mmdb.db
fi
git pull
go build
./livestream