Skip to content

Instantly share code, notes, and snippets.

@erikng
Created July 25, 2014 00:40
Show Gist options
  • Save erikng/f315409c9f0f42c1659a to your computer and use it in GitHub Desktop.
Save erikng/f315409c9f0f42c1659a to your computer and use it in GitHub Desktop.
Mountain Lion Server - Yosemite Client Support
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Darwin/9
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard-snowleopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/13
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/14
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
</IfModule>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>otherCatalogs</key>
<array>
<string>index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>index-lion-snowleopard-leopard.merged-1.sucatalog</string>
<string>index-leopard-snowleopard.merged-1.sucatalog</string>
</array>
</dict>
</plist>
@henningkessler
Copy link

i tried this on a Mavericks 10.9.5 machine with Server.app 3.2.1 and unfortunately it reverts the changes to the swupd.conf every time I start the swupdate. Any idea?

@erikng
Copy link
Author

erikng commented Nov 23, 2014

Just now seeing this but I never got around to testing it on Mavericks. I have moved to Server 4 & reposado.
My guess is there is another swupd.conf file. It should have created a .previous though.

@JatB
Copy link

JatB commented Dec 11, 2014

I know this is supposed to be for 10.8, but I wanted to add on to what henningkessler said and mention that it’s still not working with Server 3.2.2. It doesn’t touch the updated swupd.plist, but it resets swupd.conf every time you start Software Update back up.

If anyone figures out a way to get 10.10 updates to work in 10.9 that would be great. This kind of update for Software Update has worked for years and it would be sad to see it go. Thanks, and thanks erikng for your updates to this.

@JatB
Copy link

JatB commented Dec 12, 2014

I know that 10.9 has aggressive preference caching, but don’t know if that is causing the issue with updating swupd.conf. Some more info about it can be found here- http://manytricks.com/blog/?p=3049

I’ve tried using “killall cfprefsd” in Terminal. I’ve also tried manually shutting down all the instances of it in Activity Monitor.

The other suggestion I’ve seen is to use “defaults read” plus the preference location in Terminal. None of these things worked for me.

With swupd.plist updated Software Update will locate and download all the proper updates for 10.10, but without the setting sticking in swupd.conf, none of the clients will be able to connect using the App Store.

@CGKsysteembeheer
Copy link

Yes yes, great solution for Software Updates on OS X Yosemite clients connecting to OS X server Mavericks!!

I had to update the swupd.plist and swupd.conf file. First, the files were locked, but I changed the permissions off the Software Update folder. Stopped the Admin Server, but DON'T stopped the swupdate service.

OS X Yosemite test client is now working fine !

thanks guys !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment