From 4a1b43dd8f86f2e774f023ebd6f990a8ed1c1a63 Mon Sep 17 00:00:00 2001 From: ToshY <31921460+ToshY@users.noreply.github.com> Date: Tue, 16 Jan 2024 18:36:23 +0000 Subject: [PATCH] Correct mapping for redis port environment variable --- install/etc/cont-init.d/30-invoiceninja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/etc/cont-init.d/30-invoiceninja b/install/etc/cont-init.d/30-invoiceninja index df8a795..e5de658 100755 --- a/install/etc/cont-init.d/30-invoiceninja +++ b/install/etc/cont-init.d/30-invoiceninja @@ -175,7 +175,7 @@ if grep -q "^APP_URL=" "${NGINX_WEBROOT}"/.env > /dev/null 2>&1; then sed -i --follow-symlinks "/.*CACHE_HOST=.*/c\#CACHE_HOST=" "${NGINX_WEBROOT}"/.env fi sed -i --follow-symlinks "s|REDIS_HOST=.*|REDIS_HOST=${REDIS_HOST}|g" "${NGINX_WEBROOT}"/.env - sed -i --follow-symlinks "s|REDIS_PORT=.*|REDIS_PORT=${REDIS_HOST}|g" "${NGINX_WEBROOT}"/.env + sed -i --follow-symlinks "s|REDIS_PORT=.*|REDIS_PORT=${REDIS_PORT}|g" "${NGINX_WEBROOT}"/.env sed -i --follow-symlinks "s|REDIS_PASSWORD=.*|REDIS_PASSWORD=${REDIS_PASS}|g" "${NGINX_WEBROOT}"/.env if [ -n "${CACHE_PORT1}" ]; then sed -i --follow-symlinks "/.*CACHE_PORT1=.*/c\CACHE_PORT1=${CACHE_PORT1}" "${NGINX_WEBROOT}"/.env