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