From c9c1dfb8236e302680e72f00bc99a561c5c0d709 Mon Sep 17 00:00:00 2001 From: William Yang Date: Mon, 25 Jul 2022 23:09:17 +0200 Subject: [PATCH] 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 --- bin/emqx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/emqx b/bin/emqx index d6ce86e10..af3751ad7 100755 --- a/bin/emqx +++ b/bin/emqx @@ -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()" }