2022-08-15 10:19:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# vim: set ts=2 sw=2 et ft=bash:
|
|
|
|
|
2022-08-15 10:35:09 +00:00
|
|
|
eval "$(/usr/bin/parse-database-url "${DATABASE_URL:-}" GITEA__database_ |sed -e 's/^/export /')"
|
2022-08-15 10:19:43 +00:00
|
|
|
|
|
|
|
# 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 "$@"
|