I have a post-installation bash script for a package where I want to have different logic to determine whether the package is being deployed via Self Service vs a policy. For example, I may want to have different jamfHelper messages to appear depending upon the method of deployment. I would keep the advantage of having a single package, rather than creating separate packages for each deployment method.
I am at a loss as to how to determine the logic. I would appreciate it if somebody can point me in the right direction. Thanks.