Skip to content

Instantly share code, notes, and snippets.

@flammable
Created September 15, 2014 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flammable/d4bf7d873421d35ed560 to your computer and use it in GitHub Desktop.
Save flammable/d4bf7d873421d35ed560 to your computer and use it in GitHub Desktop.
#!/bin/bash
# enable our Mac SUS
defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates -bool True
defaults write /Library/Preferences/ManagedInstalls SoftwareUpdateServerURL "http://sus.org/index_release.sucatalog"
# set our SUS for App Store updates, but disable update checking
defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://sus.org/index_release.sucatalog
softwareupdate --schedule off
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment