Created
January 27, 2018 07:53
-
-
Save lucascantor/96798533604dbb340b0085bd550f8ec8 to your computer and use it in GitHub Desktop.
#Enable automatic Apple software updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool TRUE | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE | |
defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE | |
defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE | |
schedule=$(softwareupdate --schedule on) | |
run_config=$(softwareupdate --background) | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment