From d62381aeca11d5db1b868a637c937b31e8243f75 Mon Sep 17 00:00:00 2001 From: asmigiel Date: Tue, 7 Jan 2025 22:11:31 +0100 Subject: [PATCH] test --- Dockerfile | 2 +- run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab3ba52..deb94c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gitea/gitea:1.14.5 +FROM gitea/gitea:1.14.5-rootless WORKDIR /app diff --git a/run.sh b/run.sh index 5ef478a..9b0fe5d 100644 --- a/run.sh +++ b/run.sh @@ -1,10 +1,10 @@ #!/bin/bash -FILE=/app/app_url.txt +FILE=./app_url.txt ROOT_URL=$(cat $FILE) - +printf($ROOT_URL) HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-` NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-` USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`