1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 15:39:45 +00:00

fix: do not override XDG_DATA_HOME/XDG_CONFIG_HOME if they are already set (#472)

This commit is contained in:
Alessandro (Ale) Segala
2025-04-22 12:58:32 +09:00
committed by GitHub
parent 76b753f9f2
commit 22725d30f4

View File

@@ -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