This commit is contained in:
dzikafoczka 2024-10-23 18:43:49 +02:00
parent fdb5394f3c
commit 7300b7b97d

View File

@ -14,9 +14,15 @@ else
exit 1
fi
# Get app url
FILE=/app/heroku-app.txt
ROOT_URL=$(grep -oP '(?<=^ROOT_URL\s*=\s*).+' $FILE)
# Custom configuration
mkdir -p /var/lib/gitea/custom/conf
# 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
/usr/local/bin/gitea web -port $PORT