13 lines
357 B
Text
13 lines
357 B
Text
|
#!/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 "$@"
|