Hi
After upgrading our JSS from version 8.7 to version 9.2 we can't create working policies with a "after"-script AND a package.
- Policies with just a package (pkg or DMG) and WITHOUT a script works fine.
- Policies with a "after" or "before" script and WITHOUT a package works fine.
- Policies with a "before" script and a package works fine.
- BUT policies with a "after" script AND a package doesn't work. The script will not be started, because the policy uses the package name as script name.
We created a test policy from scratch, assigned a dummy package and a dummy script. When running this policy, the log shows the following entry:
Running script 000_Mac_C_DMG_LyncWinEmoticons_1.0.dmg...
Script exit code: 126
Script result: /Library/Application Support/JAMF/tmp/000_Mac_C_DMG_LyncWinEmoticons_1.0.dmg: /Library/Application Support/JAMF/tmp/000_Mac_C_DMG_LyncWinEmoticons_1.0.dmg: cannot execute binary file
So it's clear the policy wants to run the script, but uses the wrong name (it's the name from the assigned package).
(We tried other DMG/PKG and scripts too…same error)
We need this combination to install a cached DMG with a "after"-script.
Thanks for any hints...