From a6050452117ed5dc209f3662b1eb96e9ce7ecaf5 Mon Sep 17 00:00:00 2001 From: Tomas Date: Fri, 18 Sep 2026 21:27:30 -0400 Subject: [PATCH] fix: populate OIDC_CLIENT_SECRET before Mealie starts Mealie expects the container entrypoint to load the contents of OIDC_CLIENT_SECRET_FILE into OIDC_CLIENT_SECRET. --- root/etc/services.d/mealie/run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/root/etc/services.d/mealie/run b/root/etc/services.d/mealie/run index 1126710..6bff3f6 100755 --- a/root/etc/services.d/mealie/run +++ b/root/etc/services.d/mealie/run @@ -10,6 +10,13 @@ if [ -n "$DB_ENGINE" ] && [ "$DB_ENGINE" = "postgres" ]; then echo "PostgreSQL is ready" fi +# Mealie expects the entrypoint to load the contents of OIDC_CLIENT_SECRET_FILE +# into OIDC_CLIENT_SECRET. It does not read the file. +if [ -f "$OIDC_CLIENT_SECRET_FILE" ]; then + OIDC_CLIENT_SECRET=$(cat "$OIDC_CLIENT_SECRET_FILE") + export OIDC_CLIENT_SECRET +fi + cd /app/mealie # Run as bsd user using the mealie command (handles migrations internally)