service-forgejo/entrypoint-wrapper
2022-08-15 12:35:09 +02:00

12 lines
356 B
Bash
Executable file

#!/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 "$@"