From 796fce01cd09ada1a786791353f6b5d97ceed6a7 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Thu, 7 Mar 2019 15:21:52 +0300 Subject: [PATCH] Fix setup amqp type --- run-document-server.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run-document-server.sh b/run-document-server.sh index da091d9..008de7b 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -145,11 +145,13 @@ update_postgresql_settings(){ update_rabbitmq_setting(){ if [ "${AMQP_SERVER_TYPE}" == "rabbitmq" ]; then + ${JSON} -I -e "if(this.queue===undefined)this.queue={};" ${JSON} -I -e "this.queue.type = 'rabbitmq'" ${JSON} -I -e "this.rabbitmq.url = '${RABBITMQ_SERVER_URL}'" fi if [ "${AMQP_SERVER_TYPE}" == "activemq" ]; then + ${JSON} -I -e "if(this.queue===undefined)this.queue={};" ${JSON} -I -e "this.queue.type = 'activemq'" ${JSON} -I -e "if(this.activemq===undefined)this.activemq={};" ${JSON} -I -e "if(this.activemq.connectOptions===undefined)this.activemq.connectOptions={};"