salopensource / sal-scripts

Apache License 2.0
23 stars 31 forks source link

Bugfix apple install times #52

Closed sheagcraig closed 5 years ago

sheagcraig commented 5 years ago

If you're having time issues (#50), give this a try!

This updates the apple_sus_checkin checkin module to use /Library/Receipts/InstallHistory.plist instead of parsing the output of softwareupdate --history.

It also sneaks in another fix: Catalina's softwareupdate outputs in a different format, and this output is still used for pending update detection. So I reused work I had already done for the Salt mac_softwareupdate module here. This allowed me to add some additional data to the managed items for pending installs, namely whether they are "recommended" or not, and whether they require a restart or shut down.