This commit is contained in:
asmigiel 2025-01-07 22:30:33 +01:00
parent 57dcfd2505
commit 6052b8a2d0

3
run.sh
View File

@ -1,10 +1,9 @@
#!/bin/bash
FILE=./app_url.txt
FILE=/app/app_url.txt
ROOT_URL=$(cat $FILE)
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:]]*"`