feat(docker): show what api url the container is using on startup

This commit is contained in:
kolaente 2021-10-04 20:44:45 +02:00
parent 78ec87360e
commit 0453758117
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

2
run.sh
View file

@ -7,6 +7,8 @@ VIKUNJA_API_URL="${VIKUNJA_API_URL:-"/api/v1"}"
VIKUNJA_HTTP_PORT="${VIKUNJA_HTTP_PORT:-80}" VIKUNJA_HTTP_PORT="${VIKUNJA_HTTP_PORT:-80}"
VIKUNJA_HTTPS_PORT="${VIKUNJA_HTTPS_PORT:-443}" VIKUNJA_HTTPS_PORT="${VIKUNJA_HTTPS_PORT:-443}"
echo "Using $VIKUNJA_API_URL as default api url"
# Escape the variable to prevent sed from complaining # Escape the variable to prevent sed from complaining
VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g') VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g')