Change preference name to UnattendedAppleUpdates

This commit is contained in:
Samuel Keeley
2016-01-29 10:17:13 -06:00
committed by Samuel Keeley
parent eaf2c7b8cb
commit 3728adafe2
2 changed files with 2 additions and 2 deletions

View File

@@ -1660,7 +1660,7 @@ class AppleUpdates(object):
os_version_tuple = munkicommon.getOsVersion(as_tuple=True)
for item in apple_updates:
if (item.get('unattended_install') or
(munkicommon.pref('AutomaticAppleUpdates') and
(munkicommon.pref('UnattendedAppleUpdates') and
item.get('RestartAction', 'None') is 'None' and
os_version_tuple >= (10, 10))):
if munkicommon.blockingApplicationsRunning(item):

View File

@@ -1214,7 +1214,7 @@ def pref(pref_name):
'SuppressStopButtonOnInstall': False,
'PackageVerificationMode': 'hash',
'FollowHTTPRedirects': 'none',
'AutomaticAppleUpdates': False,
'UnattendedAppleUpdates': False,
}
pref_value = CFPreferencesCopyAppValue(pref_name, BUNDLE_ID)
if pref_value == None: