From 726bd8c5877003781d2e42eed4cd8527132aabf3 Mon Sep 17 00:00:00 2001 From: dekzter Date: Fri, 14 Mar 2025 16:37:19 -0400 Subject: [PATCH] Bad default assignment --- docker/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 2790c62e..2898ed2f 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -34,6 +34,9 @@ export POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret} export POSTGRES_HOST=${POSTGRES_HOST:-localhost} export POSTGRES_PORT=${POSTGRES_PORT:-5432} +export REDIS_HOST=${REDIS_HOST:-localhost} +export REDIS_DB=${REDIS_DB:-0} + # Global variables, stored so other users inherit them if [[ ! -f /etc/profile.d/dispatcharr.sh ]]; then echo "export PATH=$PATH" >> /etc/profile.d/dispatcharr.sh @@ -46,6 +49,8 @@ if [[ ! -f /etc/profile.d/dispatcharr.sh ]]; then echo "export POSTGRES_HOST=$POSTGRES_HOST" >> /etc/profile.d/dispatcharr.sh echo "export POSTGRES_PORT=$POSTGRES_PORT" >> /etc/profile.d/dispatcharr.sh echo "export DISPATCHARR_ENV=$DISPATCHARR_ENV" >> /etc/profile.d/dispatcharr.sh + echo "export REDIS_HOST=$REDIS_HOST" >> /etc/profile.d/dispatcharr.sh + echo "export REDIS_DB=$REDIS_DB" >> /etc/profile.d/dispatcharr.sh fi chmod +x /etc/profile.d/dispatcharr.sh