Posted on 12-17-2015 03:19 PM
Hey all,
I have a question about dockutil and JAMF. I created a package to install dockutil and a script to reset the dock. As long as I call it manually from terminal it works fine, but I’m trying to use it in conjunction with a DEP enrollment. When I run as in conjunction with the DEP enrollment (ie with trigger set to enrollment complete or if I call it with a custom trigger from script), I get error 1, could not read data from /var/folders/zz/ etc.
Any thoughts?
Thanks!
Posted on 12-17-2015 09:35 PM
Might help if you posted some of the script here so we can see how you're doing it.
My first guess would be that, dockutil expects to be working on the Dock for the user running the script. In this case, it would be root running the script, not actually the logged in user. If so, the fix would be to specify the path to the current user's home directory (using a dynamically generated variable) for dockutil to work on.
But the above is just a guess, since again, I can't see the script.