I've noticed that some scripts have a tendency to fail when run via a policy that uses a recurring trigger. If the policy is triggered manually, the script works though.
So
Script A in policy A with recurring trigger : fails
Script A in in policy A run with a manual trigger : runs as expected
Then create a second policy (policy B) with just Script A and a manual trigger
If you put the jamf policy -trigger X
in the Files & Processes part of Policy A to call Policy B: Script A runs as expected
If you create a new script to call Policy B manually and put that script into Policy A: Script A fails
Anyone else run into this behavior? Seems like it is a defect in JSS. I am on 9.72.
Thanks, sk
ps: apologies for poor formatting