From 319abacc59d14f83af6ddb188ecf4d12384dda31 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Wed, 23 Oct 2024 12:20:35 +0200 Subject: [PATCH] Test --- parse_db_url.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/parse_db_url.sh b/parse_db_url.sh index 112912f..e263799 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -1,10 +1,8 @@ #!/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|") export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|") export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|") -/usr/local/bin/gitea web -port $PORT