Skip to content

Commit

Permalink
Correct mapping for redis port environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed Jan 16, 2024
1 parent c4d5a97 commit 4a1b43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/etc/cont-init.d/30-invoiceninja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a1b43d

Please sign in to comment.