summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-11-05 15:13:03 +0000
committerTim Watson <tim@rabbitmq.com>2013-11-05 15:13:03 +0000
commitbe00641ced64b26e80869a79f6d830b2aa45c9fe (patch)
treec54380e9c7bd91d9573285abe6a66b1a3871bb28 /scripts
parent61266a5e641c7a4d67e348de48081f394290079b (diff)
downloadrabbitmq-server-be00641ced64b26e80869a79f6d830b2aa45c9fe.tar.gz
Ensure we pass the nodename on windows
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rabbitmq-plugins.bat6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/rabbitmq-plugins.bat b/scripts/rabbitmq-plugins.bat
index 0d1f128e..252ecb3a 100755
--- a/scripts/rabbitmq-plugins.bat
+++ b/scripts/rabbitmq-plugins.bat
@@ -31,6 +31,10 @@ if "!RABBITMQ_BASE!"=="" (
set RABBITMQ_BASE=!APPDATA!\!RABBITMQ_SERVICENAME!
)
+if "!RABBITMQ_NODENAME!"=="" (
+ set RABBITMQ_NODENAME=rabbit@!COMPUTERNAME!
+)
+
if not exist "!ERLANG_HOME!\bin\erl.exe" (
echo.
echo ******************************
@@ -51,7 +55,7 @@ if "!RABBITMQ_PLUGINS_DIR!"=="" (
set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
)
-"!ERLANG_HOME!\bin\erl.exe" -pa "!TDP0!..\ebin" -noinput -hidden -sname rabbitmq-plugins!RANDOM!!TIME:~9! -s rabbit_plugins_main -enabled_plugins_file "!RABBITMQ_ENABLED_PLUGINS_FILE!" -plugins_dist_dir "!RABBITMQ_PLUGINS_DIR:\=/!" -extra !STAR!
+"!ERLANG_HOME!\bin\erl.exe" -pa "!TDP0!..\ebin" -noinput -hidden -sname rabbitmq-plugins!RANDOM!!TIME:~9! -s rabbit_plugins_main -enabled_plugins_file "!RABBITMQ_ENABLED_PLUGINS_FILE!" -plugins_dist_dir "!RABBITMQ_PLUGINS_DIR:\=/!" -nodename !RABBITMQ_NODENAME! -extra !STAR!
endlocal
endlocal