mpanighetti / install-or-defer

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

Custom max deferral timing #17

Closed mpanighetti closed 5 years ago

mpanighetti commented 5 years ago
christopherdietrich commented 5 years ago

Are you sure this works with a config profile? I don't think deploying a profile will actually update the value in the plist, maybe use python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('MAX_DEFERRAL_TIME', '$PLIST')" instead of defaults read...?

mpanighetti commented 5 years ago

It’s worked in my testing, though there might be a delay before the system starts picking up the custom value; killing cfprefsd can force the system to recognize the new setting sooner for testing purposes.

EDIT: Spoke too soon, defaults read definitely isn't reading configuration profile values. I'll implement the python version of the check as that seems to be working more reliably. Thanks for flagging!