From 22725d30f4115ffe17625379f56affedfe116778 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Tue, 22 Apr 2025 12:58:32 +0900 Subject: [PATCH] fix: do not override XDG_DATA_HOME/XDG_CONFIG_HOME if they are already set (#472) --- scripts/docker/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/docker/entrypoint.sh b/scripts/docker/entrypoint.sh index e63f1019..bbc38083 100644 --- a/scripts/docker/entrypoint.sh +++ b/scripts/docker/entrypoint.sh @@ -8,9 +8,9 @@ if [ "$CADDY_DISABLED" != "true" ]; then echo "Starting Caddy..." # https://caddyserver.com/docs/conventions#data-directory - export XDG_DATA_HOME=/app/backend/data/.local/share + export XDG_DATA_HOME=${XDG_DATA_HOME:-/app/backend/data/.local/share} # https://caddyserver.com/docs/conventions#configuration-directory - export XDG_CONFIG_HOME=/app/backend/data/.config + export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-/app/backend/data/.config} # Check if TRUST_PROXY is set to true and use the appropriate Caddyfile if [ "$TRUST_PROXY" = "true" ]; then