From b61bee02207a5fa8f42fe7eaacc14a8a11c5252a Mon Sep 17 00:00:00 2001 From: awieczarek Date: Wed, 23 Oct 2024 12:36:29 +0200 Subject: [PATCH] Test --- Dockerfile | 2 -- parse_db_url.sh | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d144d28..5b05833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,6 @@ COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh USER root RUN chmod 755 /usr/local/bin/parse_db_url.sh -RUN mkdir -p /var/lib/gitea/custom/conf - ENV DATABASE_URL=${DATABASE_URL} CMD ["/usr/local/bin/parse_db_url.sh"] diff --git a/parse_db_url.sh b/parse_db_url.sh index 6e5f588..858cdc3 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -1,5 +1,7 @@ #!/bin/sh +exec mkdir /var/lib/gitea/custom/conf + export GITEA__database__DB_TYPE=postgres export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|") export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")