robjschroeder / App-Auto-Patch

Auto patch management script via Dialog
https://techitout.xyz/app-auto-patch/
MIT License
109 stars 18 forks source link

Feature Request: Separate time stamps for last silent run and last interactive run of App-Auto-Patch in AppAutoPatchStatus.plist #48

Open quinningtime opened 7 months ago

quinningtime commented 7 months ago

It would be great if the AppAutoPatchStatus.plist could have a separate time stamp for that last silent run of App-Auto-Patch and the last interactive run. This would allow us to have: Policy 1: A jamf policy that automatically run App-Auto-Patch on a recurring basis silently with the installomator options set to "BLOCKING_PROCESS_ACTION=silent_fail NOTIFY=silent" so users are not disturbed or asked to close any running apps. Policy 2: A jamf self service policy users can run on demand to run App-Auto-Patch in an interactive 2 or 1 mode that will prompt users to close apps to update them with the installomator options set to the default "BLOCKING_PROCESS_ACTION=prompt_user" installomator option Policy 3: a jamf policy that runs daily on macs that have not run App Auto Patch in more than X number of days to notify users to run App-Auto-Patch from self service using a smart group tied to the the App-Auto-Patch last run extension attribute. This is meant to ensure they regularly get reminded to run Policy 2 from Self service to ensure that apps they never close still get updated.

Right now this all works except that int her current version the the silent policy 1 will keep updating the AAPLastRun value in AppAutoPatchStatus.plist and users will never get notified to run Policy 2 from self service via Policy 3. I have thought about using the AppAutoPatch built in deferral option but currently I prefer a gentle reminder based option via policy 3 above rather then force run App Auto Patch after a specified number of deferrals.

Thanks!