diff --git a/parse_db_url.sh b/parse_db_url.sh index bdd4c1e..112912f 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -1,5 +1,6 @@ #!/bin/sh +export GITEA__database__DB_TYPE=postgres export GITEA__database__DB_TYPE=${DATABASE_URL%%:*} export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|") export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")