All checks were successful
continuous-integration/drone/push Build is passing
17 lines
241 B
Bash
Executable File
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 $@
|