Allow the use of RABBITMQ_CONFIG_FILE env var with bazel run broker

This commit is contained in:
Philip Kuryloski 2022-02-04 08:57:11 +01:00
parent bcb6b26d3a
commit 0a63178a83
1 changed files with 4 additions and 2 deletions

View File

@ -142,8 +142,10 @@ EOF
case $CMD in
run-broker)
export RABBITMQ_ALLOW_INPUT=true
export RABBITMQ_CONFIG_FILE=${TEST_TMPDIR}/test.config
write_config_file
if [ -z ${RABBITMQ_CONFIG_FILE+x} ]; then
export RABBITMQ_CONFIG_FILE=${TEST_TMPDIR}/test.config
write_config_file
fi
${RABBITMQ_SCRIPTS_DIR}/rabbitmq-server
;;
start-background-broker)