From 8d66aaa2f4a47e5fb7afef1e71a22e3a0ce43e3f Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Wed, 23 Oct 2024 18:46:09 +0200 Subject: [PATCH] heroku --- script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.sh b/script.sh index e425e2b..a46f273 100644 --- a/script.sh +++ b/script.sh @@ -16,11 +16,13 @@ fi # Get app url FILE=/app/heroku-app.txt -ROOT_URL=$(grep -oP '(?<=^ROOT_URL\s*=\s*).+' $FILE) +ROOT_URL=$(cat $FILE) # Custom configuration mkdir -p /var/lib/gitea/custom/conf +echo $ROOT_URL + # printf "[server]\nDOMAIN = $DOMAIN\n" > /var/lib/gitea/custom/conf/app.ini printf "[server]\nROOT_URL = $ROOT_URL\n" > /var/lib/gitea/custom/conf/app.ini printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini