Compare commits

..

8 Commits

Author SHA1 Message Date
Sheaza
b9f4e88016 fix 6 2024-10-28 22:14:55 +01:00
Sheaza
aaf35252c0 fix 5 2024-10-28 22:14:01 +01:00
Sheaza
1271f70e3e fix 4 2024-10-28 22:11:23 +01:00
Sheaza
3c18f5d13c fix 3 2024-10-28 22:10:39 +01:00
Sheaza
2f8b80181c fix 2 2024-10-28 22:06:37 +01:00
Sheaza
86ad1e810c fix 2024-10-28 21:59:43 +01:00
Sheaza
aa0ae1a64e domain extraction fix 2 2024-10-28 21:53:18 +01:00
Sheaza
4f7ef231a1 domain extraction fix 2024-10-28 21:50:50 +01:00

3
run.sh
View File

@ -2,9 +2,8 @@ HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-`
NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-` NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"` USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`
PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"` PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
DOMAIN=`heroku info -s | grep web_url | cut -b 17- | cut -d/ -f1`
printf "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini printf "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini
printf "DOMAIN = $DOMAIN\n" >> /var/lib/gitea/custom/conf/app.ini printf "DOMAIN = $HEROKU_APP_DEFAULT_DOMAIN_NAME\n" >> /var/lib/gitea/custom/conf/app.ini
printf "\n[database]\nDB_TYPE = postgres;\n" >> /var/lib/gitea/custom/conf/app.ini printf "\n[database]\nDB_TYPE = postgres;\n" >> /var/lib/gitea/custom/conf/app.ini
printf "NAME = $NAME;\n" >> /var/lib/gitea/custom/conf/app.ini printf "NAME = $NAME;\n" >> /var/lib/gitea/custom/conf/app.ini
printf "HOST = $HOST;\n" >> /var/lib/gitea/custom/conf/app.ini printf "HOST = $HOST;\n" >> /var/lib/gitea/custom/conf/app.ini