From 21f5019e1c86930029702791ea6fe9cf2e3c7039 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Wed, 9 Feb 2022 09:37:52 +0200 Subject: [PATCH] Initialliaze services.CoAuthoring.redis before attempting to set a child to a value (#404) Co-authored-by: papacarlo --- run-document-server.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run-document-server.sh b/run-document-server.sh index 2bcdcc2..30a3f3b 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -284,6 +284,7 @@ update_rabbitmq_setting(){ } update_redis_settings(){ + ${JSON} -I -e "if(this.services.CoAuthoring.redis===undefined)this.services.CoAuthoring.redis={};" ${JSON} -I -e "this.services.CoAuthoring.redis.host = '${REDIS_SERVER_HOST}'" ${JSON} -I -e "this.services.CoAuthoring.redis.port = '${REDIS_SERVER_PORT}'" }