diff options
| author | Michael Klishin <michael@novemberain.com> | 2015-07-29 23:23:59 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@novemberain.com> | 2015-07-29 23:23:59 +0300 |
| commit | 93ecc11f07aff80bb1ea99d7530363f7db695166 (patch) | |
| tree | 516b3b7b80560cd5093f2cf5014020f9558ec1bd /scripts | |
| parent | 28499dd69a17763bec2b83c9bc77b9ffc85b997e (diff) | |
| parent | 1f61e4fae109561572beca3f0ddc9c7624622126 (diff) | |
| download | rabbitmq-server-git-93ecc11f07aff80bb1ea99d7530363f7db695166.tar.gz | |
Merge pull request #243 from Jakauppila/rabbitmq-server-243
Fixes a logic problem with NODE_IP_ADDRESS and NODE_PORT in rabbitmq-env.bat.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rabbitmq-env.bat | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/scripts/rabbitmq-env.bat b/scripts/rabbitmq-env.bat index 604260a0e4..7465072d19 100644 --- a/scripts/rabbitmq-env.bat +++ b/scripts/rabbitmq-env.bat @@ -84,23 +84,28 @@ REM set RABBITMQ_NODE_PORT=5672 REM ) REM ) -REM DOUBLE CHECK THIS LOGIC if "!RABBITMQ_NODE_IP_ADDRESS!"=="" ( - if "!NODE_IP_ADDRESS!"=="" ( - set RABBITMQ_NODE_IP_ADDRESS=auto - ) else ( + if not "!NODE_IP_ADDRESS!"=="" ( set RABBITMQ_NODE_IP_ADDRESS=!NODE_IP_ADDRESS! ) ) if "!RABBITMQ_NODE_PORT!"=="" ( - if "!NODE_PORT!"=="" ( - set RABBITMQ_NODE_PORT=5672 - ) else ( + if not "!NODE_PORT!"=="" ( set RABBITMQ_NODE_PORT=!NODE_PORT! ) ) +if "!RABBITMQ_NODE_IP_ADDRESS!"=="" ( + if not "!RABBITMQ_NODE_PORT!"=="" ( + set RABBITMQ_NODE_IP_ADDRESS=auto + ) +) else ( + if "!RABBITMQ_NODE_PORT!"=="" ( + set RABBITMQ_NODE_PORT=5672 + ) +) + REM [ "x" = "x$RABBITMQ_DIST_PORT" ] && RABBITMQ_DIST_PORT=${DIST_PORT} REM [ "x" = "x$RABBITMQ_DIST_PORT" ] && [ "x" = "x$RABBITMQ_NODE_PORT" ] && RABBITMQ_DIST_PORT=$((${DEFAULT_NODE_PORT} + 20000)) REM [ "x" = "x$RABBITMQ_DIST_PORT" ] && [ "x" != "x$RABBITMQ_NODE_PORT" ] && RABBITMQ_DIST_PORT=$((${RABBITMQ_NODE_PORT} + 20000)) |
