fix(bin/emqx): avoid creating crash dump file when checking erlang

This commit is contained in:
Zaiming (Stone) Shi 2022-08-11 13:15:45 +02:00
parent 0a6a01463e
commit 3a917605f5
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ assert_node_alive() {
check_erlang_start() {
# Fix bin permission
find "$BINDIR" ! -executable -exec chmod a+x {} \;
"$BINDIR/$PROGNAME" -boot "$REL_DIR/start_clean" -eval "crypto:start(),halt()"
# set ERL_CRASH_DUMP_BYTES to zero so it will not write a crash dump file
env ERL_CRASH_DUMP_BYTES=0 "$BINDIR/$PROGNAME" -boot "$REL_DIR/start_clean" -eval "crypto:start(),halt()"
}
if ! check_erlang_start >/dev/null 2>&1; then