Files
geoipapi/start.sh
Ask Bjørn Hansen e16ea1d5a9
All checks were successful
continuous-integration/drone/push Build is passing
Upgrade dependencies, prepare to use geoipupdate to update data
2022-04-07 22:59:29 -07:00

17 lines
241 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
GEOIP=/usr/share/GeoIP/
if [[ ! -z "$GEOIP" ]]; then
while [[ ! -e "$GEOIP/GeoLite2-City.mmdb" ]]; do
echo waiting for geoip databases
sleep 4
done
fi
echo starting geoipapi
exec /bin/geoipapi $@