Posted on 07-21-2016 11:29 AM
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?
Posted on 07-21-2016 12:14 PM
The login / logout hooks don't change, they just call a script which runs any policies using the login and / or logout triggers. So they should be reading the script from the JSS.
Posted on 07-21-2016 12:23 PM
Wrong post : )
Posted on 07-21-2016 12:25 PM
Heh, never mind.
Posted on 07-21-2016 12:43 PM
@davidacland this particular one runs a script that is also set to run offline... I failed to mention this, sorry.
Posted on 07-21-2016 12:57 PM
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.
Posted on 07-21-2016 01:00 PM
@mm2270 Thanks dude... I think that will do the trick
Posted on 07-21-2016 01:00 PM
Hmm, not sure without testing. Some things that I suspect would refresh it:
Bit of a pain either way though.