Commit Graph

258 Commits

Author SHA1 Message Date
Greg Neagle
b9f9fffccc Revert "munki: rename "/usr/local/munki/python" symlink to "munki-python" (#997)"
This change is still a good future goal, but is causing problems that are too difficult to work around right now and is delaying the vital release of Munki 5.1 for Big Sur compatibility.

This reverts commit 3bb91cabca.
2020-09-15 09:04:47 -07:00
David Aguilar
3bb91cabca munki: rename "/usr/local/munki/python" symlink to "munki-python" (#997)
Avoid masking the system /usr/bin/python by calling our symlink
"munki-python" instead of "python".

Closes #996
2020-07-07 13:58:34 -07:00
Greg Neagle
353d542974 Reorder tasks at the end of a managedsoftwareupdate run so the munkistatus session is told it's done before we send a notification of pending updates. 2020-06-30 20:43:06 -07:00
Greg Neagle
6806c5dbed Remove no-longer-used loginwindow import 2020-06-29 11:49:37 -07:00
Greg Neagle
36d8195b54 When MSC.app opens the Software Update preferences pane for a user to initiate a software update, clear all the the loginwindow/startup trigger files so that Munki does not attempt to install updates at the same time Apple Software Update may be installing. 2020-06-29 11:48:02 -07:00
Greg Neagle
d2d2c14dd5 When /Users/Shared/.com.googlecode.munki.checkandinstallatstartup or /Users/Shared/.com.googlecode.munki.installatstartup are used, skip the run if we are at the loginwindow because of a logout and not because of a restart. 2020-06-26 14:58:56 -07:00
Greg Neagle
c53be5860e Clear bootstrap mode if there are no Munki updates and no Apple updates we can actually install without user help. 2020-05-26 10:46:16 -07:00
Greg Neagle
9e18c67a1b A far too large commit that extends obnoxious mode to Munki updates that have been pending a long time and to updates that will be forced soon. 2020-05-10 18:35:00 -07:00
Greg Neagle
2d90875f91 Move bridgeos_update_staged() function to osutils; allows osinstaller, appleupdates, and managedsoftwareupdate to call it. 2020-05-07 14:54:49 -07:00
Greg Neagle
1d4030aa44 Check nvram for evidence a BridgeOS update is staged; if so, shutdown instead of restart. 2020-05-07 09:19:23 -07:00
Greg Neagle
e01a005e6b write the installatstartup file as a plist instead of plaintext 2020-04-12 08:16:12 -07:00
Greg Neagle
72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08:00
Greg Neagle
af51af5cdd Change all sh-bang lines to #!/usr/local/munki/python 2019-07-16 22:14:47 -07:00
Greg Neagle
7ff576f159 Python 3 compatibility fixes 2019-07-13 18:21:54 -07:00
Greg Neagle
b5bb875884 Better unicode text handling for subprocesses 2019-06-24 21:53:37 -07:00
Greg Neagle
1e99d145d3 Python 3 compatibility changes for managedsoftwareupdate 2019-06-22 22:17:45 -07:00
Greg Neagle
f1df5d96a6 Pylint fixes 2019-05-05 12:48:15 -07:00
Greg Neagle
df60207145 Add 'from __future__ import absolute_import' to all files to enforce Python3-style imports 2019-05-03 21:34:56 -07:00
Greg Neagle
531d99a01a Convert all print statements to Python3-compatible print functions 2019-05-03 19:47:37 -07:00
Elliot Jordan
2ad27ff411 Align except clauses with PEP 3110 (#933)
This should work for Python 2.6+, including 3.
https://www.python.org/dev/peps/pep-3110/#compatibility-issues
2019-05-03 15:05:13 -07:00
Greg Neagle
f890235044 Fix an issue that would cause Munki to fail to reboot after installing updates that require a reboot when no-one is logged in. 2019-02-18 07:39:43 -08:00
Elliot Jordan
d14c4304ea Various typo fixes and spelling corrections (#907)
* Fixed "No Comment" typo in strings files

* Fix "problem updates" typo

* Fix "caught" typo

* Fix "pseudo" typo

* Fix "instantiated" typo

* Fix "explicitly" typo

* Fix "osascript" typo

* Spelling fixes and various other corrections

* Fix two more instances of "Logput"

* Fixed a few remaining spelling issues in python files

* Fix "because" typo

PR also submitted upstream to the Murky project for the same correction.

* Fix name of associated app

* Additional spelling corrections in comments/docstrings
2019-02-14 08:30:43 -08:00
Greg Neagle
a73ea66162 Provide switch for MunkiStatus output so precache_agent can switch it off. Addresses #897 2019-01-08 11:00:41 -08:00
Greg Neagle
918d0b7391 Update copyright dates 2019-01-02 10:31:50 -08:00
Greg Neagle
19362c77e9 Log shut down actions no matter the logging level; don't require halt message to be at the beginning of a softwareupdate output line 2018-12-17 16:13:00 -08:00
Greg Neagle
7339391cb5 Simplify return value logic in doInstallTasks() 2018-12-11 11:25:05 -08:00
Greg Neagle
c69c0b2166 If shutting down don't call authrestartd.restart() afterwards 2018-12-11 11:25:05 -08:00
Greg Neagle
e5b473107a Cleaning up logic around None/Restart/Shutdown 2018-12-11 11:25:05 -08:00
Wesley Whetstone
133fc6a3ed changing return code and adding proper parameter call 2018-12-11 11:25:04 -08:00
Wesley Whetstone
b7236a9344 adding in the option to have munki showdown after apple updates instaed of restarting. 2018-12-11 11:25:03 -08:00
Greg Neagle
46747a9848 Fix warn_if_server_is_default function to not crash when SoftwareRepoURL is None, a result of the changes in autodetecting ther Munki repo 2018-04-18 10:25:18 -07:00
Greg Neagle
1428c40d06 Update copyright notices to include 2018 2018-01-20 08:46:22 -08:00
Greg Neagle
54713665be Tweaks around restart handling after a successful startosinstall run 2017-09-11 09:44:38 -07:00
Greg Neagle
99d902b638 New bootstrapping.py to manage bootstrap mode; disable FV user autologin when in bootstrap mode 2017-08-31 13:39:30 -07:00
Greg Neagle
a2cd572b74 Add --show-config option to managedsoftwarecenter 2017-07-18 13:41:45 -07:00
Greg Neagle
a7c43cf337 Fix for postflights always reporting a runtype of 'osinstall'. See #784 2017-06-27 08:40:08 -07:00
Greg Neagle
98a4892985 Auth restart support for Managed Software Center.app 2017-04-20 14:52:02 -05:00
Greg Neagle
4b1c0c9949 Start of launchd socket support 2017-04-14 10:47:58 -07:00
Greg Neagle
b45a36a337 Refactor authrestart code so osinstaller can use it. 2017-04-13 15:47:29 -07:00
Greg Neagle
cead5a175b Really fix spelling of sendDistribitedNotification() 2017-04-12 09:30:17 -07:00
Greg Neagle
69f788a15a Fix spelling of sendDistribitedNotification() 2017-04-12 09:29:25 -07:00
Clayton Burlison
1f2ab4220c Update managedsoftwareupdate --auto help msg (#739) 2017-04-11 09:29:20 -07:00
Greg Neagle
d13130c4dc PyLint cleanups 2017-04-07 22:12:02 -07:00
Greg Neagle
b1b79ed51b Fix for Dock update badge not being properly updated, caused by a regression here in commit 292bc808c6 2017-04-07 09:38:10 -07:00
Greg Neagle
39b0d0720c Exit faster/earlier and do less when another instance of managedsoftwareupdate is running. 2017-04-04 13:22:05 -07:00
Greg Neagle
292bc808c6 - Groundwork for installing from locally-installed app instead of dmg
- Run some finishing tasks including postflight script when signalled by startosinstall that it's ready to restart
- launchd.py extended to optionally _not_ cleanup a launchd job on exit so that startosinstall isn't killed prematurely and can live on after managedsoftwareupdate's untimely death
2017-04-04 10:49:15 -07:00
Greg Neagle
2219f13621 Add macOS install support to managedsoftwareupdate 2017-04-01 21:28:48 -07:00
Greg Neagle
0b1a1f344a managedsoftwareupdate: Remove munkicommon import; replace with refactored modules 2017-03-02 11:01:27 -08:00
Greg Neagle
d3801b1071 new launchagent for munki-status, new make_munki_mpkg.sh script 2017-02-26 12:01:43 -08:00
Greg Neagle
90d457b082 more of the needed munki-notifier pieces 2017-02-26 10:30:33 -08:00