Still very new to Casper and the scripting aspects of getting everything to work. I am working on a new Yosemite base and the setup that follows. Right now, I am stuck on setting up the Dock. Have read many posts here on this, not sure if all apply to Yosemite due to the age of some.
I have put DockUtil into play here and received some positive results so far. I have created a basic script and ran it through SelfService, it works. Next will be to test in a fresh build scenario.
Script:
#!/bin/bash
# Calling previously installed DockUtil 2.0.2 app to remove OSX dock icons and add required dock icons.
# v1.0
DOCKUTIL=/usr/local/bin/dockutil
$DOCKUTIL --remove all --no-restart
sleep 10
$DOCKUTIL --add '/Applications/Launchpad.app' --no-restart
$DOCKUTIL --add '/Applications/Calculator.app' --no-restart
$DOCKUTIL --add '/Applications/Safari.app' --no-restart
$DOCKUTIL --add '/Applications/Self Service.app' --no-restart
$DOCKUTIL --add '/Applications' --no-restart
$DOCKUTIL --add '/Applications/System Preferences.app' --no-restart
killall cfprefsd
killall Dock
exit 0
My real question here is how do I make sure that this default setup is the Dock that every user that ever logs into the device will get at first? These logged in users will be Active Directory users.
After first login the users can change or modify the dock as they see fit, we don't care, but the first login must be universally the same and any changes they make after that must remain in place under their profile. Cannot use something that runs at login and reverts to default, unfortunately.
Does anyone out there have some sort of script that would do this and can post it here for reference or help?
Thank you.
