Added support for notification of downloaded Apple Software Updates (see relevant changes to installcheck and managedinstaller).

When choosing "Install without logging out", a file is touched in the managed install directory (typically /LibraryManaged Installs/) so that a launchd LaunchDaemon can be triggered.

git-svn-id: http://munki.googlecode.com/svn/trunk@88 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-05-22 19:08:41 +00:00
parent 82ad48c60e
commit fb6a181b58

View File

@@ -17,6 +17,8 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.
property managedInstallDir : ""
on itemstoinstall()
set installlist to {}
set ManagedInstallPrefs to "/Library/Preferences/ManagedInstalls.plist"
@@ -30,6 +32,12 @@ on itemstoinstall()
set end of installlist to (installitem as item)
end if
end repeat
try
set appleupdatelist to value of property list item "apple_updates" of property list file InstallInfo
repeat with installitem in appleupdatelist
set end of installlist to (installitem as item)
end repeat
end try
end tell
end try
return installlist as list
@@ -143,7 +151,9 @@ on alert ended theObject with reply withReply
quit
end if
if button returned of withReply is "Install without logging out" then
--trigger managedinstaller somehow
--trigger managedinstaller
set triggerpath to quoted form of (managedInstallDir & "/.run_managedinstaller")
do shell script "/usr/bin/touch " & triggerpath
quit
end if
if button returned of withReply is "OK" then