Dock show network shares - Profile Manager
Running server 5 and el cap, if I add network shares to a users dock they show as a question mark which does not resolve when clicked. I belive this is because of network shares being mapped AFTER the dock has loaded. This wasnt a problem back in the days of workgroup manager but things have ovviously changed...
I've created a login script to "kill the dock" after a period of time. I also have a logout script which does other things, so I know the correct settings are enabled to allow scripts to be run.
Running the .sh script during the users session does refresh the dock and map network shortcuts correctly. It doesnt however automate like I want it too. Ive set the script to pause for 20 seconds but this still doesnt work for some reason.
Here is my script, which is saved as a .sh and CHMOD 777 and then uploaded to Profile Manager in the "login scripts" section
#!/bin/bash
# Reload Dock
sleep 25
killall -KILL Dock
exit
Anything obvious ive done wrong?
thanks.
Mac mini, OS X Server