Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6 Server: Set the appropriate Software Update Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6 Server: Set the appropriate Software Update Server
Authored by: feyd on Nov 09, '09 10:07:36AM
Awesome hint. I actually tried deploying this using Casper by JAMF. Every once in a while it would fail and the log stated that there was a missing ">" somewhere. Obviously there are no brackets in your script. To avoid the issue I rewrote it as a bash script.
#!/bin/bash

#script ported from AppleScript to shell by feyd
#original by flammable found here http://www.macosxhints.com/article.php?story=20091002190708159

osVersion=`sw_vers -productVersion`

case $osVersion in
10.4*)
	catalogURLValue="http://Server.local:8088/index.sucatalog"
	;;
10.5*)
	catalogURLValue="http://Server.local:8088/index-leopard.merged-1.sucatalog"
	;;
10.6*)
	catalogURLValue="http://Server.local:8088/index-leopard-snowleopard.merged-1.sucatalog"
	;;
10.[1-3]*)
	exit 1
	;;
esac

defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL $catalogURLValue

exit 0
Thanks again!

[ Reply to This | # ]
10.6 Server: Set the appropriate Software Update Server
Authored by: flammable on Feb 27, '10 07:33:15PM

Wow, that's awesome! Thanks for sharing your rewrite!



[ Reply to This | # ]
10.6 Server: Set the appropriate Software Update Server
Authored by: willowhaus on Apr 01, '10 12:41:14PM

Thank you so much for this - your script helped me solve my problem after migrating from Server 10.5 to Server 10.6. Awesome!



[ Reply to This | # ]