diff options
author | Matthew Sackman <matthew@lshift.net> | 2010-02-08 15:06:37 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2010-02-08 15:06:37 +0000 |
commit | 3535c682501a40549e8427663d64423ef0812bfb (patch) | |
tree | 81564bd571f6031d512e77efa8f5f432d60ca7d6 | |
parent | dfdf6c9e201ea127ba7a6991baed88bf95be5367 (diff) | |
download | rabbitmq-server-bug22303.tar.gz |
Don't hardcode erts path, instead, searchbug22303
-rwxr-xr-x | scripts/rabbitmq-service.bat | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat index 9fc4f2e3..cc2e8166 100755 --- a/scripts/rabbitmq-service.bat +++ b/scripts/rabbitmq-service.bat @@ -66,7 +66,9 @@ if "%ERLANG_SERVICE_MANAGER_PATH%"=="" ( echo.
exit /B
)
- set ERLANG_SERVICE_MANAGER_PATH=%ERLANG_HOME%\erts-5.7.4\bin
+ for /f "delims=" %%i in ('dir /ad/b "%ERLANG_HOME%"') do if exist "%ERLANG_HOME%\%%i\bin\erlsrv.exe" (
+ set ERLANG_SERVICE_MANAGER_PATH=%ERLANG_HOME%\%%i\bin
+ )
)
set CONSOLE_FLAG=
|