191 Commits

Author SHA1 Message Date
Greg Neagle
fa8895429e After doing unattended installs, don't recheck Apple updates availability if there were none available when we started (or we weren't supposed to check them at all) 2016-06-29 17:05:23 -04:00
Greg Neagle
28cb5f7c66 Better handling of manifest names that include Unicode characters, including handling --id from managedsoftwareupdate at the command-line. 2016-05-11 10:21:15 -07:00
Greg Neagle
109146c368 Keep MSC.app launch trigger file around for 5 seconds before removing to make launching MSC more reliable on 10.10+. 2016-04-15 13:23:35 -07:00
Greg Neagle
41ef4ac741 Convert Exception objects to unicode before passing them to munkicommon.display_* functions. Addresses issue #584 2016-03-30 10:50:00 -07:00
Greg Neagle
2abb90bba8 Remove more cases of premature str() conversion for munkicommon.display_*() functions. Addresses potential unicode issues. 2016-03-18 11:19:17 -07:00
Greg Neagle
12d4f0d27e Update copyright info on files; remove abandoned tools from code/tools 2016-03-15 09:32:28 -07:00
Greg Neagle
17ea06d631 munkistatusoutput tweak 2016-03-09 21:14:17 -08:00
Samuel Keeley
5c12185da4 Replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0 2015-11-13 20:35:24 -08:00
Greg Neagle
087bed6b72 PyLint cleanups for managedsoftwareupdate 2015-10-09 08:59:26 -07:00
Greg Neagle
3fd17e5587 Rephrase logging about skipping Apple updates when Munki items to install contain Apple items; move code block to clearer place 2015-10-09 07:12:10 -07:00
Pepijn Bruienne
f3e86d2087 Add logging about skipped ASU checks when installing Apple items. 2015-10-09 09:40:09 -04:00
Greg Neagle
891d70c778 Fix help message for managedsoftwareupdate --id 2015-08-19 09:46:04 -07:00
Greg Neagle
5307006ef4 Clear PendingUpdateCount after installing so Dock badge is reset 2015-04-15 14:37:29 -07:00
Greg Neagle
74112ae2c8 Record PendingUpdateCount in ManagedInstalls preferences for use by docktileplugin 2015-04-15 10:19:00 -07:00
Greg Neagle
a82fc141c1 Merge pull request #464 from erikng/master
60 second network wait
2015-03-25 15:52:40 -07:00
Erik Gomez
d102c15cfe Update managedsoftwareupdate 2015-03-21 18:53:24 -05:00
Nate Walck
b767cf999f Added logging so it is easier to determine if updates are installed at login window or a user GUI session 2015-03-16 09:03:04 -07:00
Greg Neagle
57db17404b Don't skip checking for Apple software updates when AppleSoftwareUpdatesOnly is set to true 2015-03-12 11:33:01 -07:00
Greg Neagle
b5bc93bf8d Make MSC responsible for triggering a restart if needed and GUI user is present to avoid process synchronization issues 2015-02-25 15:35:42 -08:00
Greg Neagle
1745cd295f Seperate the ideas of skipping the check phase and only installing so that managedsoftwareupdate doesn't auto-install cached items when the Munki server cannot be reached. 2015-02-06 09:35:15 -08:00
Erik Gomez
19524fe259 Update managedsoftwareupdate
Refresh time now one second.
2014-11-25 10:16:41 -06:00
Erik Gomez
130152b801 Update managedsoftwareupdate 2014-11-22 23:54:44 -06:00
Erik Gomez
8b444133ec Update managedsoftwareupdate
Extend time up to 30 seconds, checking every half second.
2014-11-22 23:50:59 -06:00
Greg Neagle
719429747d Warn if client is using the default repo, which is insecure. 2014-11-12 10:38:12 -08:00
Greg Neagle
816dcb5c12 Change Munki URL in startup text printed when running managedsoftwareupdate. 2014-11-04 15:36:13 -08:00
Greg Neagle
423ec8b790 PyLint cleanup: replace all unused_foo variables with dummy_foo variables to make PyLint happy 2014-10-26 11:42:33 -07:00
Greg Neagle
60bc2dcd13 revert part of Revision: 90752e2f9768; proceed to install if options.logoutinstall or options.installonly are true, instead of doing options.auto actions first. The prior change caused SuppressLoginwindowInstall to prevent install during a bootstrapping session. 2014-08-21 16:00:20 -07:00
Greg Neagle
9f6bc782b4 If Munki is configured to check and install AppleSoftwareUpdatesOnly, update the LastCheckDate and LastCheckResult 2014-08-12 22:44:14 -07:00
Greg Neagle
7d79748174 Remove trailing whitespace from all lines in managedsoftwareupdate (code style issue) 2014-07-22 10:27:21 -07:00
Greg Neagle
79093c048f Merging Arjen's MUNKI_VERBOSITY_LEVEL environment variable 2014-06-24 15:39:02 -07:00
Arjen van Bochoven
2af6c13f87 Renamed VERBOSE to MUNKI_VERBOSITY_LEVEL 2014-06-25 00:23:32 +02:00
Arjen van Bochoven
62986bac54 Store verbosity level in environment variable
Pre- and post-flight scripts can use verbosity level from managedinstall
2014-06-23 23:33:04 +02:00
Greg Neagle
90752e2f97 When running managedsoftwareupdate in --auto mode, if the Munki repo server is not available, do not exit immediately, but attempt to install any cached updates (either those marked for unattended_install or if at the loginwindow, all updates) 2014-06-19 15:12:13 -07:00
Greg Neagle
d343ede672 Add support for product icon downloads from Munki server 2014-03-24 10:21:42 -07:00
Greg Neagle
c0d96c31fd Allow non-root user to run managedsoftwareupdate --version 2014-03-22 19:50:35 -07:00
Greg Neagle
20a8466836 Send an update notification after a 'managedsoftwareupdate --installonly' run so any open instance of MSC.app updates its display 2014-03-14 16:21:27 -07:00
Greg Neagle
64597994ae Make sure the need to restart is not lost when Munki updates need a restart but Apple updates do not. 2014-02-21 08:43:11 -08:00
Greg Neagle
3bc78d53a2 Make sure the need to restart is not lost when Munki updates need a restart but Apple updates do not. 2014-02-21 08:35:11 -08:00
Greg Neagle
f3ec0e0bbd Changes to make updates after a Munki session completes visually smoother, elimnating the reload flash when possible. 2014-02-20 15:17:35 -08:00
Greg Neagle
f2c3f66420 implement more of the inter-process plumbing, including monitoring the managedsoftwareupdate process for failure to start or unexpected termination 2014-02-18 17:44:01 -08:00
Greg Neagle
5a9c158080 More IPC work 2014-02-14 17:12:14 -08:00
Greg Neagle
bfea0b1673 Use filesystem flag instead of NSDistributedNotification to signal that managedsoftwareupdate should stop. Turns out you can't send NSDistributedNotifications from user-land apps to background daemons launched by launchd. 2014-02-14 12:02:19 -08:00
Greg Neagle
36dc30920d start of changes to implement NSDistributedNotifications for IPC between managedsoftwareupdate and the GUI apps 2014-02-10 15:47:58 -08:00
Justin McWilliams
bde50a7dca In addition to ManagedSoftwareUpdate.log, also log to /var/log/system.log when 'LogToSyslog' configuration is True. 2014-02-06 18:04:07 -05:00
Greg Neagle
fddd138000 Bumping version to 1.0.0. Updated copyright dates. 2014-01-10 08:20:15 -08:00
Justin McWilliams
b166a908c0 Fix "NameError: name 'report_broken_python' is not defined" crash when attempting to report a broken Python install. The file hasn't been parsed at this point, so the report_broken_python function is nonexistent.
Broken in: https://code.google.com/p/munki/source/detail?r=cbb385f540643aa3a15a242ba5de513404af02ce

pylint warnings should either be ignored, or disabled using a "pylint: disable-msg" annotation.
2013-05-14 16:52:55 -07:00
ogle
72662f2614 If a force_install_after_date install is near/past it's due date, logouthelper should be started (the machine should be forcefully rebooted) even if someone is logged in but the session is at the loginwindow (fast user switching). Force should not be "force unless x, y, z". 2013-04-19 22:25:08 +00:00
Greg Neagle
52fd32f0dc If we are about to do an install at the loginwindow, check to see if FileSyncAgent.app is running. This might be HomeSync running during a login process. If so, don't install. 2013-04-15 16:01:24 -07:00
Greg Neagle
a21a4b1acc When skipping Apple Software updates because there is an update from Apple in InstallInfo.plist, remove AppleUpdates.plist to prevent MSU.app and logouthelper from presenting force_install_after_date warnings for items it will not be able to install because Munki updates are blocking Apple updates. 2013-03-08 13:52:01 -08:00
Heig Gregorian
ed9a8b0913 Renamed updatecheck.getAppleUpdateMetaData to updatecheck.getPrimaryManifestCatalogs to reflect actual function; added function parameter to specify whether or not the primary client manifest and catalogs should be re-downloaded before parsing for apple_update_metadata
Additionally, ensure that MACHINE dict is populated regardless of the
runtype as it may impact how a primary manifest is discovered.
2013-02-22 15:29:15 -08:00