Hello Everyone,
I have written a bash script which is run before a Self Service initiated policy. It simply ensures the application we are about to update is not running. If it is running it prompts the user to close the application (I'm using Cocoa Dialog).
Everything is working amazingly well... the only problem I have is I am unable to stop the policy from executing if the user chooses to cancel.
In theory I thought "exit 1" should work, however the policy simply continues executing in the same way it does when I supply "exit 0".
My last resort would be to kill the Self Service application (killall SelfService) but that's really messy and awful. I'm hoping there is an undocumented hook that will help me out.
I also put this question to Jamf and their suggestion was two policies... which would work but gets a little messy when you have 500 policies.
Your assistance is appreciated.
Thanks,
Tim Mohr