Skip to content

Instantly share code, notes, and snippets.

@erikng erikng/swupd.conf
Last active Dec 26, 2015

Embed
What would you like to do?
Mountain Lion Server - Maverick 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
</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.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>
@erikng

This comment has been minimized.

Copy link
Owner Author

erikng commented Oct 24, 2013

  1. sudo serveradmin stop swupdate
  2. make changes to files in /Library/Server/Software\ Update/Config
  3. sudo serveradmin start swupdate
  4. Wait for updates to download
@tjsoftworks

This comment has been minimized.

Copy link

tjsoftworks commented Nov 30, 2013

Awesome.... it continues to amaze me ( I don't know why at this point ) that Apple doesn't seem to ever get the SUS server 100% right. Thanx erikng for figuring it out this time and posting the corrections as a GIST which is awesome compared to wading thru Apple Discussions and/or waiting for Apple getting around to updating the software.

@datenimperator

This comment has been minimized.

Copy link

datenimperator commented Dec 10, 2013

Thanks so much, I always need to google for these required updates after a SUS change is required.

@vasquezx1

This comment has been minimized.

Copy link

vasquezx1 commented Dec 11, 2013

Thank you!

@standaniels

This comment has been minimized.

Copy link

standaniels commented Dec 17, 2013

I replaced swupd.conf and swupd.plist with the files above, but how can I access the sucatalog file? http://su.example.com:8088/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog doesn't seem to work...

@motionbug

This comment has been minimized.

Copy link

motionbug commented Jan 15, 2014

@tjsoftworks I think that apple wants more people to go to caching server for software updates.

@jondthompson

This comment has been minimized.

Copy link

jondthompson commented Jan 21, 2014

Motionbug, that would be fine if caching server served updates. It just serves apps.

@arubdesu

This comment has been minimized.

Copy link

arubdesu commented Feb 11, 2014

@jondthompson the Caching service as part of Server.app 2.2.1 did serve software updates when accessed by clients running 10.8.2 or later, the one in Mavericks server also serves these other content types.
Also, people are seemingly coming to this thread without context, just to be explicit this gist seems like it was originally helpful for folks using the wdas/reposado project.

@erikng

This comment has been minimized.

Copy link
Owner Author

erikng commented Jul 25, 2014

Hey guys, sorry for never replying to any of the comments (I never received any notifications!).

Given that Yosemite is now quasi-public, I've decided to make a new gist for it.

https://gist.github.com/erikng/f315409c9f0f42c1659a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.