K1000 5.5.3.0275 automated Mac OS Agent
I have been trying to build an automated package of the Kbox Agent for Mac that injects our K1000 host name on the client and have used a script I found on this article: http://www.kace.com/support/resources/kb/article/K1000-5-3-Mac-OS-agent-as-a-Post-Installation as a stepping stone, but I have not been able to install the client with this. It used to work great on the 5.4 client but it doesnt work with 5.5.3.0275.
Basically I create a new project in Iceberg (I have done it on Packages and Packagemaker with the same results). I select the AMPAgent.pkg and drag it into the additional resources section of the project then I attach my postflight script:
mkdir -p "/Library/Application Support/Dell/KACE/data"
Printf "host=myKace1000.meh.boo" >> "/Library/Application Support/Dell/KACE/data/amp.conf"
/usr/sbin/installer -pkg "$1/Contents/Resources/AMPAgent.pkg" -target /
Then I save the script and I run the command sudo chmod a+x /path/to/postflight to make the script executable.
When I run the package, it appears to be installing and near the end of the execution it breaks the install and I get an error:
The installation failed.
The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Of course calling KACE about it is pretty useless as they dont have knowledgebase with this kind of information for Mac.