From 149103e9ba27fab2f4e8110b16df84674e861980 Mon Sep 17 00:00:00 2001 From: EliaOnceAgain Date: Sun, 10 Apr 2022 18:30:14 +0300 Subject: [PATCH] Deploy: Don't chmod if appimage hasn't changed --- deployment_scripts/install-infection-monkey-service.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment_scripts/install-infection-monkey-service.sh b/deployment_scripts/install-infection-monkey-service.sh index 50660dd40..bc9c36ae3 100755 --- a/deployment_scripts/install-infection-monkey-service.sh +++ b/deployment_scripts/install-infection-monkey-service.sh @@ -66,9 +66,8 @@ move_appimage() { if [ "$1" != "${MONKEY_BIN}/${APPIMAGE_NAME}" ] ; then sudo cp "$appimage_path" "${MONKEY_BIN}/${APPIMAGE_NAME}" + sudo chmod a+x "${MONKEY_BIN}/${APPIMAGE_NAME}" fi - - sudo chmod a+x "${MONKEY_BIN}/${APPIMAGE_NAME}" } user_exists() {