summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2015-07-15 18:21:48 +0300
committerMichael Klishin <mklishin@pivotal.io>2015-07-15 18:21:48 +0300
commitab29c09cc41c3cb4104cc85ca329efe67c399472 (patch)
tree94eb25b96e9e86c0c62dacd8e22415d7ea66e719
parentcfceb7cd6d4a69cc444e245f6c91e13b999df31d (diff)
downloadrabbitmq-server-git-ab29c09cc41c3cb4104cc85ca329efe67c399472.tar.gz
Bring back ERLANG_HOME check
-rwxr-xr-xscripts/rabbitmqctl.bat14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/rabbitmqctl.bat b/scripts/rabbitmqctl.bat
index 67fa0fbf47..45e2929579 100755
--- a/scripts/rabbitmqctl.bat
+++ b/scripts/rabbitmqctl.bat
@@ -24,6 +24,18 @@ set TDP0=%~dp0
set STAR=%*
setlocal enabledelayedexpansion
+if not exist "!ERLANG_HOME!\bin\erl.exe" (
+ echo.
+ echo ******************************
+ echo ERLANG_HOME not set correctly.
+ echo ******************************
+ echo.
+ echo Please either set ERLANG_HOME to point to your Erlang installation or place the
+ echo RabbitMQ server distribution in the Erlang lib folder.
+ echo.
+ exit /B 1
+)
+
REM Get default settings with user overrides for (RABBITMQ_)<var_name>
REM Non-empty defaults should be set in rabbitmq-env
call "%TDP0%\rabbitmq-env.bat"
@@ -40,4 +52,4 @@ call "%TDP0%\rabbitmq-env.bat"
-extra !STAR!
endlocal
-endlocal \ No newline at end of file
+endlocal