summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/rabbitmq-server.bat5
-rw-r--r--scripts/rabbitmq-service.bat5
2 files changed, 8 insertions, 2 deletions
diff --git a/scripts/rabbitmq-server.bat b/scripts/rabbitmq-server.bat
index 8d17fd13..70c5629d 100644
--- a/scripts/rabbitmq-server.bat
+++ b/scripts/rabbitmq-server.bat
@@ -108,9 +108,12 @@ if "!RABBITMQ_MNESIA_DIR!"=="" (
)
set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
-set RABBITMQ_PLUGINS_EXPAND_DIR=!TDP0!..\priv\plugins
set RABBITMQ_EBIN_ROOT=!TDP0!..\ebin
+if "!RABBITMQ_PLUGINS_EXPAND_DIR!"=="" (
+ set RABBITMQ_MNESIA_DIR=!RABBITMQ_BASE!\priv\plugins
+)
+
"!ERLANG_HOME!\bin\erl.exe" ^
-pa "!RABBITMQ_EBIN_ROOT!" ^
-noinput -hidden ^
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index 1bc5ec3b..9489ad8a 100644
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -178,9 +178,12 @@ if errorlevel 1 (
)
set RABBITMQ_PLUGINS_DIR=!TDP0!..\plugins
-set RABBITMQ_PLUGINS_EXPAND_DIR=!TDP0!..\priv\plugins
set RABBITMQ_EBIN_ROOT=!TDP0!..\ebin
+if "!RABBITMQ_PLUGINS_EXPAND_DIR!"=="" (
+ set RABBITMQ_MNESIA_DIR=!RABBITMQ_BASE!\priv\plugins
+)
+
"!ERLANG_HOME!\bin\erl.exe" ^
-pa "!RABBITMQ_EBIN_ROOT!" ^
-noinput -hidden ^