I had used this before I got JAMF and now I can't seem to get it to install.
I have tried a Dmg and a pkg without any luck.
Any ideas?
This is the post install script
#!/bin/sh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
mv /tmp/com.apple.print.add.plist /Users/$USER/Library/Preferences/
mv /tmp/org.cups.PrintingPrefs.plist /Users/$USER/Library/Preferences/
mv /tmp/IT Dept Printer.app /Users/$USER/Library/Printers/
mv /tmp/.cups /Users/$USER/
chown -R $loggedInUser:staff /Users/$USER/Library/Preferences/com.apple.print.add.plist
chown -R $loggedInUser:staff /Users/$USER/Library/Preferences/org.cups.PrintingPrefs.plist
chown -R $loggedInUser:staff /Users/$USER/Library/Printers/IT Dept Printer.app
chown -R $loggedInUser:staff /Users/$USER/.cups
/usr/sbin/lpadmin -p 'IT_Dept_Printer' -L ‘IT_Dept’ -E -v lpd://10.22.1.93 -P /Library/Printers/PPDs/Contents/Resources/Kyocera TASKalfa 4550ci.ppd -o printer-is-shared=false
exit 0 ## Success
exit 1 ## Failure