I’m trying to get a post-install script to run from a custom trigger. This seems like it should be fairly straight forward so I assume I’m overlooking something quite basic? And yes, I am a noob in terms of scripting so please go easy on me. Or not! I just can't figure out what I'm doing wrong...
Following a suggested imaging Workflow on Macmule I’ve created postflight.sh like this:
#!/bin/bash
jamf policy -event postflightconfig
Which has then been set to run at reboot as part of this imaging config:
With the policy itself set to trigger at a custom event defined as postflightconfig, like this:
Except nothing happens?
If I make postflight.sh executable I can run it manually and the policy is successfully triggered so I know the trigger and policy are OK. I just can’t get it to run at reboot after imaging?
JSS is 9.81
Thanks in advance...