Check SuppressAutoInstall value before attempting unattended installs

This commit is contained in:
Greg Neagle
2011-09-19 10:13:44 -07:00
parent fd1622edfa
commit cab84a49d2

View File

@@ -694,8 +694,11 @@ def main():
'not idle (keyboard or mouse activity).')
else: # there are GUI users
unused_force_action = updatecheck.checkForceInstallPackages()
doInstallTasks(only_unattended=True)
if not munkicommon.pref('SuppressAutoInstall'):
doInstallTasks(only_unattended=True)
else:
munkicommon.log('Skipping unattended installs because '
'SuppressAutoInstall is true.')
# send a notification event so MSU can update its display
# if needed
sendUpdateNotification()