From 056620b4dc55ed7bd037592bf138a2d921934b5c Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Tue, 23 Feb 2021 11:55:13 +0100 Subject: [PATCH] add : in front of password for ioredis --- bin/plugin-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin-server b/bin/plugin-server index 825045ace03..c7b341ddd2e 100755 --- a/bin/plugin-server +++ b/bin/plugin-server @@ -27,7 +27,7 @@ if [[ -n $POSTHOG_DB_NAME ]]; then fi if [[ -z $REDIS_URL ]]; then - [[ -n $POSTHOG_REDIS_PASSWORD ]] && REDIS_PASSWORD_COMPONENT="$POSTHOG_REDIS_PASSWORD@" + [[ -n $POSTHOG_REDIS_PASSWORD ]] && REDIS_PASSWORD_COMPONENT=":$POSTHOG_REDIS_PASSWORD@" export REDIS_URL="redis://${REDIS_PASSWORD_COMPONENT}${POSTHOG_REDIS_HOST:-"localhost"}:${POSTHOG_REDIS_PORT:-"6379"}/" fi