From 176e91f5331d4c09978cdf2a3e24186294941cbe Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Sun, 10 Apr 2022 14:31:51 -0400 Subject: [PATCH] Deploy: Set permissions of deployed AppImage to 755 --- deployment_scripts/install-infection-monkey-service.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/install-infection-monkey-service.sh b/deployment_scripts/install-infection-monkey-service.sh index 4fa8e2aba..fe2789426 100755 --- a/deployment_scripts/install-infection-monkey-service.sh +++ b/deployment_scripts/install-infection-monkey-service.sh @@ -65,8 +65,9 @@ move_appimage() { sudo mkdir -p "${MONKEY_BIN}" if [ "$1" != "${MONKEY_BIN}/${APPIMAGE_NAME}" ] ; then + umask 022 sudo cp "$appimage_path" "${MONKEY_BIN}/${APPIMAGE_NAME}" - sudo chmod a+x "${MONKEY_BIN}/${APPIMAGE_NAME}" + sudo chmod 755 "${MONKEY_BIN}/${APPIMAGE_NAME}" fi }