mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
147 stars 28 forks source link

Issue:- the file tested on 10.15 machine, This mac is 11.2 #75

Closed Dharmeshcomputer closed 2 years ago

Dharmeshcomputer commented 2 years ago

unable to update security patch

mpanighetti commented 2 years ago

Hi! Could you give a little more information on the issue you're running into and which version of macOS your Mac is running? I'd recommend giving the latest release a try, which adds more customization options and improves stability on Apple Silicon Macs. Also, if you're editing the script for your environment, give the unmodified release a try and see if it behaves any better, as that can sometimes reveal issues with script modifications or deployment methods. Keep me posted!

Dharmeshcomputer commented 2 years ago

The New release is giving an error. We have a locked software update option in system preferences, it's, again and again, poping up to go there. Screenshot attached. one more thing " sudo softwareupdate -a -i --restart" is working fine. but need to create policy in JamF.

Screenshot 2022-02-16 at 11 27 28 PM Screenshot 2022-02-16 at 11 29 10 PM
mpanighetti commented 2 years ago

Oh interesting. This workflow didn't take into account that folks might be blocking the Software Update preference. You could change the wording of the alert text to remove references to the manual update option if you don't want to direct folks there, at least on Intel Macs; Apple Silicon Macs will need the user to manually apply the update via the System Preferences UI; see the README for the rationale behind this behavior.

mpanighetti commented 2 years ago

Added a note to Limitations on the README to clarify that running this script on Apple Silicon Macs requires the user to have a secure token, volume ownership, and the ability to open the Software Update preference pane. Thanks for flagging this behavior!