fix(upgrade): ensure files in BINDIR executable

During upgrade procedure, emqx zip file is repacked to .tar.gz but does not
preserve permission of files.

This commit ensure files under BINDIR is executable
This commit is contained in:
William Yang 2022-07-25 23:09:17 +02:00
parent 08033a82e8
commit c9c1dfb823
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,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()"
}