Skip to content

Commit

Permalink
Fix remote_shell on win32
Browse files Browse the repository at this point in the history
This command requires werl.exe. In OTP 26, this will still work because werl.exe is the same as erl.exe
  • Loading branch information
lukebakken committed Feb 27, 2023
1 parent 74ce1a4 commit 96c3560
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deps/rabbit/scripts/rabbitmq-diagnostics.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ if not defined ERL_CRASH_DUMP_SECONDS (
set ERL_CRASH_DUMP_SECONDS=0
)

"!ERLANG_HOME!\bin\erl.exe" +B ^
if "%1"=="remote_shell" (
set ERL_CMD=werl.exe
) else (
set ERL_CMD=erl.exe
)

"!ERLANG_HOME!\bin\!ERL_CMD!" +B ^
-boot !CLEAN_BOOT_FILE! ^
-noinput -noshell -hidden -smp enable ^
!RABBITMQ_CTL_ERL_ARGS! ^
Expand Down

0 comments on commit 96c3560

Please sign in to comment.