From e76265b68d16cc94fdde41275cb5084c254ba5ef Mon Sep 17 00:00:00 2001 From: awieczarek Date: Wed, 23 Oct 2024 13:01:17 +0200 Subject: [PATCH] Test --- parse_db_url.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/parse_db_url.sh b/parse_db_url.sh index b0d971d..dc79f1e 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -11,7 +11,8 @@ NAME=$(echo $DATABASE_URL | sed -e 's,.*/\(.*\)$,\1,') SSL_MODE="require" -mkdir -p /var/lib/gitea/custom/conf +printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini +printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini printf "[database]\n" > /var/lib/gitea/custom/conf/app.ini printf "DB_TYPE = $DB_TYPE\n" >> /var/lib/gitea/custom/conf/app.ini @@ -21,9 +22,4 @@ printf "USER = $USER\n" >> /var/lib/gitea/custom/conf/app.ini printf "PASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini printf "SSL_MODE = $SSL_MODE\n" >> /var/lib/gitea/custom/conf/app.ini -printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini -printf "ROOT_URL = https://your-app-name.herokuapp.com/\n" >> /var/lib/gitea/custom/conf/app.ini -printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini - - /usr/local/bin/gitea web -port $PORT