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>
@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