I would like to know by which mechanism are login and logout hooks updated? For instance, I have a script that I want run upon login. I had this scoped to myself as a test, and have since updated the script. The changes in the script are not applying to my machine after trying the following:
- ran a jamf recon
- ran a jamf manage
- ran a jamf policy
- ran a jamf createHooks
Is there something I'm missing?
Ah, you may be running into an issue where the offline cached script is getting called instead of downloading it from the server. I'd flush out the cached policy from the Mac. These get stored inside
/Library/Application Support/JAMF/Offline Policies/ and will be inside a folder in that location with the name of the policy, so you may need to delete that entire policy name directory.
Note that the "Offline Policies" folder is a protected location, so you'll need root to even peek inside it.
Hmm, not sure without testing. Some things that I suspect would refresh it:
Bit of a pain either way though.