ERROR: Error executing script installcheck_script: [Errno 2] No such file or directory
<?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>itsadmin</string>
<key>creation_date</key>
<date>2014-08-13T17:44:29Z</date>
<key>munki_version</key>
<string>1.0.0.1886</string>
<key>os_version</key>
<string>10.8.5</string>
</dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
<string>testing</string>
</array>
<key>description</key>
<string>Installs CLK-A261-PR01 in CLK-A261 - Xerox WorkCentre 7225</string>
<key>display_name</key>
<string>CLK-A261-PR01</string>
<key>installcheck_script</key>
<string>#!/bin/bash
echo "testing"
</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.7</string>
<key>name</key>
<string>CLK-A261-PR01</string>
<key>postinstall_script</key>
<string>#!/bin/sh
server="print01"
printername="CLK-A261-PR01"
location="CLK-A261"
gui_display_name="$printername"
address="smb://$server.main.ad.rit.edu/$printername"
driver_ppd="/Library/Printers/PPDs/Contents/Resources/Xerox WorkCentre 7225.gz"
deployment_version=1.0
option_1="Duplex=DuplexNoTumble"
option_2="XRTrays=FiveTrays"
option_3="XRFinisher=SBFinisher"
option_4="XRHolePunch=False"
option_5="XRLanFax=True"
option_6="XRJobStorage=False"
option_7="XRLanFaxEmailConfirmation=True"
### Printer Install ###
# In case we are making changes to a printer we need to remove an existing queue if it exists.
/usr/bin/lpstat -p $printername > /dev/null 2>&1
if [ $? -eq 0 ]; then
/usr/sbin/lpadmin -x $printername
fi
# Now we can install the printer.
/usr/sbin/lpadmin \
-p "$printername" \
-L "$location" \
-D "$gui_display_name" \
-v "$address" \
-P "$driver_ppd" \
-o "$option_1" \
-o "$option_2" \
-o "$option_3" \
-o "$option_4" \
-o "$option_5" \
-o "$option_6" \
-o "$option_7" \
-o printer-op-policy='authenticated' \
-o printer-is-shared=false \
-E
# Enable and start the printers on the system (after adding the printer initially it is paused).
/usr/sbin/cupsenable $(lpstat -p | grep -w "printer" | awk '{print$2}')
# Create a receipt for the printer
defaults write /private/etc/cups/deployment/receipts/$printername.plist PrinterName "${printername}"
defaults write /private/etc/cups/deployment/receipts/$printername.plist Location "${location}"
defaults write /private/etc/cups/deployment/receipts/$printername.plist Model "Xerox WorkCentre 7225"
defaults write /private/etc/cups/deployment/receipts/$printername.plist DeploymentVersion "${deployment_version}"
# Permission the directories properly.
chown -R root:_lp /private/etc/cups/deployment
chmod -R 700 /private/etc/cups/deployment
exit 0
</string>
<key>requires</key>
<array>
<string>Xerox Print Driver</string>
</array>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
/usr/sbin/lpadmin -x CLK-A261-PR01
rm -f /private/etc/cups/deployment/receipts/CLK-A261-PR01.plist
</string>
<key>version</key>
<string>1.0</string>
</dict>
</plist>