Skip to content

Instantly share code, notes, and snippets.

@timsutton
Created February 10, 2014 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timsutton/8923628 to your computer and use it in GitHub Desktop.
Save timsutton/8923628 to your computer and use it in GitHub Desktop.
Test for a nopkg Munki item fails to install
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>installcheck_script</key>
<string>#!/bin/sh
exit 0
</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>preinstall_script</key>
<string>#!/bin/sh
echo "Sleeping.."
sleep 5
exit 1
</string>
<key>name</key>
<string>TestBadPkg</string>
<key>version</key>
<string>1.0.0.0.0 (Please edit me!)</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment