From dbf0d34ac6e43cdd7a317527b8a12aca08d8ef75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 8 Sep 2021 20:16:09 +0200 Subject: [PATCH 1/3] BLOCKING_PROCESS_ACTION=tell_user Default now is `BLOCKING_PROCESS_ACTION=tell_user` --- fragments/header.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fragments/header.sh b/fragments/header.sh index 04a2ed1..36f4b2d 100644 --- a/fragments/header.sh +++ b/fragments/header.sh @@ -34,7 +34,7 @@ NOTIFY=success # behavior when blocking processes are found -BLOCKING_PROCESS_ACTION=prompt_user +BLOCKING_PROCESS_ACTION=tell_user # options: # - ignore continue even when blocking processes are found # - quit app will be told to quit nicely, if running From 7abcf51a55e798daa4d4d99ab8d14cd68d42eed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 8 Sep 2021 20:19:56 +0200 Subject: [PATCH 2/3] Warning. --- README.md | 1 + fragments/header.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 8bb2b17..4af9cb6 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ There are eight options: - `prompt_user`: (default) show a user dialog for each blocking process found abort after three attempts to quit (only if user accepts to quit the apps, otherwise the update is cancelled). - `prompt_user_then_kill`: show a user dialog for each blocking process found, attempt to quit two times, kill the process finally. - `prompt_user_loop`: Like prompt-user, but clicking "Not Now", will just wait an hour, and then it will ask again. +WARNING! It might block the MDM agent on the machine, as the scripts gets stuct in waiting until the hour has passed, possibly blocking for other management actions in this time. - `tell_user`: User will be showed a notification about the important update, but user is only allowed to quit and continue, and then we ask the app to quit. - `tell_user_then_kill`: Show dialog 2 times, and if the quitting fails, the blocking processes will be killed. - `kill`: kill process without prompting or giving the user a chance to save. diff --git a/fragments/header.sh b/fragments/header.sh index 36f4b2d..d13323e 100644 --- a/fragments/header.sh +++ b/fragments/header.sh @@ -51,6 +51,9 @@ BLOCKING_PROCESS_ACTION=tell_user # - prompt_user_loop # Like prompt-user, but clicking "Not Now", will just wait an hour, # and then it will ask again. +# WARNING! It might block the MDM agent on the machine, as +# the scripts gets stuct in waiting until the hour has passed, +# possibly blocking for other management actions in this time. # - tell_user User will be showed a notification about the important update, # but user is only allowed to quit and continue, and then we # ask the app to quit. From d250e5a8b9ae46f5c4e61b40269b3befc339be52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 8 Sep 2021 22:08:09 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1dfcca..11cd078 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## v0.7 - pre-release +- default for `BLOCKING_PROCESS_ACTION`is now `BLOCKING_PROCESS_ACTION=tell_user` and not `prompt_user`. It will demand the user to quit the app to get it updated, and not present any option to skip it. In considering various use cases in different MDM solutions this is the best option going forward. Users usually choose to update, and is most often not bothered much with this information. If it's absoultely a bad time, then they can move the dialog box to the side, and click it when ready. - script is now assembled from fragments. This helps avoid merging conflicts on git and allows the core team to work on the script logic while also accepting new labels. See the "Assemble Script ReadMe" for details. - Change in finding installed apps. We now look in /Applications and /Applications/Utilities first. If not found there, we use spotligt to find it. (We discovered a problem when a user has Parallels Windows installed with Microsoft Edge in it. Then Installomator wanted to update the app all the time, becaus spotligt found that Windows version of the app that Parallels created.) - Added bunch of new labels