
Also, fixed up environment variable to use RABBITMQ_NODE_PORT, which is what RabbitMQ expects (http://www.rabbitmq.com/configure.html). Implements: blueprint kube-rabbitmq-container Change-Id: Iacc2ea5d3c4a002e6920ed17cb21733a0cbd8d21
20 lines
439 B
Bash
Executable File
20 lines
439 B
Bash
Executable File
#!/bin/sh
|
|
|
|
: ${RABBITMQ_USER:=guest}
|
|
: ${RABBITMQ_PASS:=guest}
|
|
: ${RABBITMQ_NODE_PORT:=5672}
|
|
: ${RABBITMQ_LOG_BASE:=/var/log/rabbitmq}
|
|
|
|
sed -i '
|
|
s|@RABBITMQ_USER@|'"$RABBITMQ_USER"'|g
|
|
s|@RABBITMQ_PASS@|'"$RABBITMQ_PASS"'|g
|
|
' /etc/rabbitmq/rabbitmq.config
|
|
|
|
sed -i '
|
|
s|@RABBITMQ_PORT@|'"$RABBITMQ_NODE_PORT"'|g
|
|
s|@RABBITMQ_LOG_BASE@|'"$RABBITMQ_LOG_BASE"'|g
|
|
' /etc/rabbitmq/rabbitmq-env.conf
|
|
|
|
exec /usr/lib/rabbitmq/bin/rabbitmq-server
|
|
|