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
Greg Neagle
98de6685cc
Merge of https://code.google.com/r/theheig-conditionals/ apple-update-metadata: Adds support for Munki-style metadata to Apple updates.
2013-02-19 17:09:40 -08:00
Heig Gregorian
53fc136d28
unattended_install in metadata no longer applied if a RestartAction exists (in original item or metadata); unattended Apple updates are skipped if a blocking application is running; installlist, holding Apple update installation results, only holds items which are eligible for unattended installation
...
Mostly, this commit involves improving upon expected functionality of
an unattend Apple update installation.
Munki performs a "suppressed" Apple software update check post
installation run if a GUI user is logged in such that the user will be
prompted to install any remaining updates. This is inline with munki's
behavior for munki packages.
blocking_applications can now accept items which are full paths in case
an admin wishes to be specific regarding the location of a running,
blocking application and/or executable.
Also of note is a fix for previously broken blocking_application
checking for Apple updates, both in MSU and managaedsoftwareupdate.
2013-02-19 13:32:09 -08:00
Heig Gregorian
b55c1c30af
Minor message and comment update
...
Comment regarding limitations to installing Apple updates removed from
managedsoftwareupdate. Warning message regarding missing
'installs/receipts' on import of an '--apple-update' item is not
displayed.
2013-02-16 13:20:25 -08:00
Heig Gregorian
cd3c69b5a2
'unattended_install' and 'force_install_after_date' actions for Apple update are honored. Overall, functions were add/modified to support this effort.
2013-02-15 18:34:28 -08:00
Greg Neagle
d2eee5e268
When adding or removing Optional Software from the list of current installs, suppress Apple Update checks.
2013-02-14 16:23:06 -08:00
Heig Gregorian
9f8cd3a975
Initial commit adding client-side support for 'apple_update_metadata'
...
Provided that 'AppleSoftwareUpdatesOnly' preference is False, primary
client manifest's catalogs are parsed for matching
'apple_update_metadata' and applied to pending Apple updates.
Please note that not ALL keys presented by an apple_update_metadata
item are applied as to not either clobber or complicate the listing of
items provided in 'AppleUpdates.plist'. The current list of excluded
keys is as follows:
catalogs
installed_size
installer_type
name
version
version_to_install
2013-02-12 13:23:45 -08:00
Greg Neagle
b80430753b
Changes to allow Munki to check for and install Apple Software Update items in the same session as normal Munki updates.
2013-02-11 08:37:39 -08:00