Skip to content

Instantly share code, notes, and snippets.

@jaknz
Created February 19, 2016 03:34
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 jaknz/c6ff3a0a19812b9e5f84 to your computer and use it in GitHub Desktop.
Save jaknz/c6ff3a0a19812b9e5f84 to your computer and use it in GitHub Desktop.
Enable Cups Web Admin via Munki
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>jaknz</string>
<key>creation_date</key>
<date>2015-07-31T00:54:58Z</date>
<key>munki_version</key>
<string>2.2.0.2381</string>
<key>os_version</key>
<string>10.9.5</string>
</dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
<string>approved</string>
</array>
<key>category</key>
<string>Configuration</string>
<key>description</key>
<string>Enables the CUPS admin web interface.</string>
<key>developer</key>
<string>Jeremy Kemp</string>
<key>display_name</key>
<string>CUPS Web Interface</string>
<key>installcheck_script</key>
<string>#!/bin/bash
if [[ $(awk '/WebInterface/{print $2}' /etc/cups/cupsd.conf) == yes ]]; then
exit 1 #Preference is already set
else
exit 0 #Preference is not set
fi
exit 0</string>
<key>installed_size</key>
<integer>0</integer>
<key>installer_item_size</key>
<integer>0</integer>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.5</string>
<key>name</key>
<string>cups_web_interface</string>
<key>preinstall_script</key>
<string>#!/bin/bash
cupsctl WebInterface=yes
exit 0</string>
<key>receipts</key>
<array/>
<key>unattended_install</key>
<true/>
<key>unattended_uninstall</key>
<true/>
<key>uninstall_script</key>
<string>#!/bin/bash
cupsctl WebInterface=no
exit 0</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>1.0</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment