From cea1b08cc6b2c7e1958c81ea0f14eed5b894007f Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 8 Feb 2022 23:31:17 +0200 Subject: [PATCH] Initialliaze services.CoAuthoring.redis before attempting to set a child to a value --- 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}'" }