Merge pull request #8099 from zmstone/0531-fix-windows-boot-script
fix(emqx.cmd): write_ini should be done before invoking Erlang
This commit is contained in:
commit
059d14ad49
16
bin/emqx.cmd
16
bin/emqx.cmd
|
@ -67,6 +67,14 @@
|
|||
@set EMQX_NODE__DB_BACKEND=mnesia
|
||||
@set EMQX_NODE__DB_ROLE=core
|
||||
|
||||
:: Write the erl.ini file to set up paths relative to this script
|
||||
@call :write_ini
|
||||
|
||||
:: If a start.boot file is not present, copy one from the named .boot file
|
||||
@if not exist "%rel_dir%\start.boot" (
|
||||
copy "%rel_dir%\%rel_name%.boot" "%rel_dir%\start.boot" >nul
|
||||
)
|
||||
|
||||
@set conf_path="%etc_dir%\emqx.conf"
|
||||
|
||||
@for /f "usebackq tokens=1,2 delims==" %%a in (`"%escript% %nodetool% hocon -s %schema_mod% -c %conf_path% multi_get node.name node.cookie node.data_dir"`) do @(
|
||||
|
@ -91,14 +99,6 @@
|
|||
@goto :eof
|
||||
)
|
||||
|
||||
:: Write the erl.ini file to set up paths relative to this script
|
||||
@call :write_ini
|
||||
|
||||
:: If a start.boot file is not present, copy one from the named .boot file
|
||||
@if not exist "%rel_dir%\start.boot" (
|
||||
copy "%rel_dir%\%rel_name%.boot" "%rel_dir%\start.boot" >nul
|
||||
)
|
||||
|
||||
@if "%1"=="install" @goto install
|
||||
@if "%1"=="uninstall" @goto uninstall
|
||||
@if "%1"=="start" @goto start
|
||||
|
|
Loading…
Reference in New Issue