Justin McWilliams
c803e1ba89
Remove printing preflight stderr, as it's been moved to runScript.
2011-10-17 18:48:15 -04:00
Justin McWilliams
c938311b2c
Move "Starting managedsoftwareupdate run" to before executing preflight,
...
"Ending ..." to after executing postflight, and add the runtype to the starting
msg so it's clear who/what is executing Munki and for what reason.
2011-10-14 16:19:38 -04:00
Greg Neagle
a41af3b7f9
Revert "Beginning of refactor for getResource/curl methods"
...
This reverts commit 821e9072cc .
2011-09-29 16:39:57 -07:00
Greg Neagle
821e9072cc
Beginning of refactor for getResource/curl methods
2011-09-29 16:24:23 -07:00
Greg Neagle
d6ae15245c
Add USER to environment variables before running /usr/sbin/installer. This works around an issue in some installer scripts that use the gneagle environment variable.
2011-09-28 09:45:02 -07:00
Greg Neagle
d0ca63a43b
Merge branch 'status-launch-and-cache-on-checksum'
2011-09-27 09:26:12 -07:00
Greg Neagle
ff43952683
Added tar2pkg.py to tools
2011-09-27 09:26:00 -07:00
Justin McWilliams
224db09684
runScript should not crash Munki if the script it's attempting to run does not exist or there are other issues executing it.
2011-09-23 14:12:16 -04:00
Greg Neagle
31dee71a55
Fix for issue when MSU.app is launched by managedsoftwareupdate more than one minute after an updatecheck run has completed (due to unattended installs, apple update checking, or combo) and add AppleUpdates to ManagedSoftwareReport.plist
2011-09-20 20:01:55 -07:00
Greg Neagle
cab84a49d2
Check SuppressAutoInstall value before attempting unattended installs
2011-09-19 10:13:44 -07:00
Justin McWilliams
72dfa5bce0
s/Content-Type/Content-Length/
2011-09-19 10:11:56 -04:00
Greg Neagle
fd1622edfa
Don't kill loginwindow if we're doing checkandinstallatstartup and a restart is not required; launchd will restart us.
2011-09-16 17:05:59 -07:00
Justin McWilliams
56216d1db3
Don't sleep for .1 seconds in between reading HTTP header lines.
2011-09-16 18:02:21 -04:00
Greg Neagle
e999eea016
Moved /private/etc/paths.d/munki file from munki_core to munki_admin pkg.
2011-09-16 10:50:23 -07:00
Justin McWilliams
79cec41552
Fix CPU owning for curl downloads while on slow internet connections when Content-Length header is not present.
...
App Engine Blobstore does not send Content-Type, which means targetsize is always 0 and therefore the conditional that calculates and reports download progress is never entered, and the existing sleep location is never hit. On slow internet connections, this means that CPU spikes as proc.poll() is being called far more than curl is downloading.
Fix this by moving time.sleep(0.1) into the main curl while loop, where it'll execute on every loop iteration. That means we have a small sleep even while headers are downloading/etc, but that's not a big deal given it's a 1/10th of a second.
2011-09-15 18:39:49 -04:00
Greg Neagle
284fa8ab52
When building munki_core.pkg, add munki file to /etc/paths.d so munki tools are in path.
2011-09-15 08:37:06 -07:00
Rob Middleton
a572573fbb
Reset report data structure before any calls that add warnings/errors.
2011-09-15 18:27:10 +10:00
Rob Middleton
b22e9de11a
Back out another dual trigger file - in logouthelper
2011-09-15 18:12:22 +10:00
Greg Neagle
833d509c94
Fix - send update notification to MSU.app after an unattended install; fix method signature for utils.runExternalScript
2011-09-14 16:43:50 -07:00
Greg Neagle
2acd81991b
Merge branch 'status-launch-and-cache-on-checksum' of https://code.google.com/p/munki into status-launch-and-cache-on-checksum
2011-09-14 15:36:17 -07:00
Greg Neagle
239663353f
Fix issues in munki.py when writing trigger files; edits to launchdaemons so managedsoftwareupdate-loginwindow runs only when a trigger file is present
2011-09-14 15:31:42 -07:00
Greg Neagle
765bf5094f
Removed new MSU launch trigger file; combining with existing trigger
2011-09-14 10:39:31 -07:00
Rob Middleton
570c0f7ad4
Allow preflight/postflight to run so long as the permissions are not weaker than managedsoftwareupdate.
2011-09-14 21:31:31 +10:00
Greg Neagle
25a9315cba
mount_nfs fix for munkiimport and manifestutil
2011-09-13 15:14:32 -07:00
Greg Neagle
cb3d75eb45
Merge remote branch 'lfronius/master'
2011-09-09 09:04:35 -07:00
Greg Neagle
116569f4fd
Updated MSU.app build scripts to get Git revision only for the MSU.xcode.project tree and to not fail if GitRevision is already in Info.plist
2011-09-07 15:14:56 -07:00
Rob Middleton
57b543de88
use getxattr function in all relevant places
2011-09-08 07:22:30 +10:00
Rob Middleton
c903723dbd
add brief logging + squash a wrong name
2011-09-07 23:18:52 +10:00
Rob Middleton
ed27d180ed
Do not redownload or check payload files with web server if hash of cached file matches hash in catalog.
2011-09-07 22:49:00 +10:00
Rob Middleton
cb5e0076d0
Speed launch of MSU.app status mode to cover the login window following logout install actions.
2011-09-07 21:23:48 +10:00
Lars Fronius
e45f31fe07
Why shouldn't manifestutil and munkiimport use nfs, and why shouldn't it be the same function for both?
2011-09-05 15:08:26 +02:00
Greg Neagle
61ebf4150c
Add check for git to sanity checks in make_munki_mpkg.sh
2011-08-30 09:18:04 -07:00
Rob Middleton
737a022a3c
add ptyexec to our built packages
2011-08-30 15:17:34 +10:00
Greg Neagle
d821429830
Change sample munki repo URLs to use example.com in keeping with RFC 2606: http://tools.ietf.org/html/rfc2606
2011-08-26 17:12:14 -07:00
Greg Neagle
01f2a51f71
Removed code/tools/makeChoices.py; this functionality is better met with /usr/sbin/installer (10.6.6+)
2011-08-26 17:08:34 -07:00
Greg Neagle
957998c87d
Fixed (again) appleupdates.GetSoftwareUpdatePref method to respect MCX
2011-08-26 12:29:49 -07:00
Greg Neagle
7264f20ac1
Updated copyright notice in Managed Software Update.app
2011-08-24 14:19:22 -07:00
Greg Neagle
727b8c904c
More sanity checks before attemping the Git clone.
2011-08-24 14:10:52 -07:00
Greg Neagle
0aa542b655
Update Usage message for make_munki_mpkg_from_git.sh, if git is missing suggest where it can be downloaded.
2011-08-24 14:08:25 -07:00
Greg Neagle
9f88500217
make_munki_mpkg.sh now smarter autodetect of munki source dir; make_munki_mpkg_from_git.sh now uses cloned/checkedout make_munki_mpkg.sh for easier bootstrapping
2011-08-24 13:51:12 -07:00
Greg Neagle
3a45395672
Updated build script for MSU.app to insert build number derived from Git and Git revision into Info.plist
2011-08-24 11:31:52 -07:00
Greg Neagle
99e09acda5
Fix for bad permissions on version.plist caused by 'defaults'; ignore other branches when calculating Git revision index
2011-08-24 10:40:12 -07:00
Greg Neagle
54ed666e23
Stash build number and git revision in munkilib/version.plist; update munkicommon.get_version() to read build number from munkilib/version.plist
2011-08-24 10:30:24 -07:00
Justin McWilliams
2fdd6fdcfb
Merging (well, moving) refactored appleupdates module, unit tests, and runtests.sh to master branch.
2011-08-24 12:42:19 -04:00
Greg Neagle
68e6baf4c7
New/updated make_munki_mpkg scripts that work with Git
2011-08-24 09:39:51 -07:00
Greg Neagle
0f2e8771e9
Updated .gitignore to ignore .pyc files and more stuff in Managed Software Update.xcodeproj
2011-08-24 09:06:53 -07:00
Greg Neagle
91be98ae2d
Fix so reading com.apple.SoftwareUpdate prefs respects MCX
2011-08-23 11:25:18 -07:00
Justin McWilliams
9d470035c2
Bug fix for appleupdates.AvailableUpdatesAreDownloaded() where productKey is not in downloaded dict.
2011-08-17 08:32:29 -04:00
Greg Neagle
98ac900592
Update discardTimeZoneFromDate() function in updatecheck.py to match that in MSU.app's munki.py. Fixes issue with Lion caused by differing string representations of NSDates between Lion and Snow Leopard.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1294 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-16 02:11:15 +00:00
Greg Neagle
51b04c7548
Cleaner version of discardTimeZoneFromDate(the_date)
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1293 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-15 21:42:47 +00:00