service-forgejo/entrypoint-wrapper

13 lines
357 B
Text
Raw Normal View History

2022-08-15 10:19:43 +00:00
#!/bin/sh
# vim: set ts=2 sw=2 et ft=bash:
eval "$(/usr/bin/parse-database-url "${DATABASE_URL:-}" GITEA__database__ |sed -e 's/^/export /')"
# Rename variables
GITEA__database__DB_TYPE="$GITEA__database__PROTO"
GITEA__database__PASSWD="$GITEA__database__PASS"
export GITEA__database__DB_TYPE
export GITEA__database__PASSWD
exec /usr/bin/entrypoint "$@"