Skip to content
Snippets Groups Projects
Commit 796fce01 authored by Alexey Golubev's avatar Alexey Golubev Committed by Alexey Golubev
Browse files

Fix setup amqp type

parent 2c44e383
No related branches found
No related tags found
No related merge requests found
...@@ -145,11 +145,13 @@ update_postgresql_settings(){ ...@@ -145,11 +145,13 @@ update_postgresql_settings(){
update_rabbitmq_setting(){ update_rabbitmq_setting(){
if [ "${AMQP_SERVER_TYPE}" == "rabbitmq" ]; then 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.queue.type = 'rabbitmq'"
${JSON} -I -e "this.rabbitmq.url = '${RABBITMQ_SERVER_URL}'" ${JSON} -I -e "this.rabbitmq.url = '${RABBITMQ_SERVER_URL}'"
fi fi
if [ "${AMQP_SERVER_TYPE}" == "activemq" ]; then 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 "this.queue.type = 'activemq'"
${JSON} -I -e "if(this.activemq===undefined)this.activemq={};" ${JSON} -I -e "if(this.activemq===undefined)this.activemq={};"
${JSON} -I -e "if(this.activemq.connectOptions===undefined)this.activemq.connectOptions={};" ${JSON} -I -e "if(this.activemq.connectOptions===undefined)this.activemq.connectOptions={};"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment