fly-apps/goatcounter/entrypoint.sh

20 lines
306 B
Bash
Raw Normal View History

2022-08-28 18:56:57 +00:00
#!/usr/bin/env bash
set -eu
create_site ()
{
goatcounter db create site \
-createdb \
2022-08-28 18:56:57 +00:00
-vhost "$GOATCOUNTER_DOMAIN" \
-user.email "$GOATCOUNTER_EMAIL" \
-password "$GOATCOUNTER_PASSWORD" \
-db "$GOATCOUNTER_DB"
}
# silence any errors
if ! create_site; then
/bin/true
fi
exec "$@"