-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_swupdate_defaults.sh
More file actions
15 lines (12 loc) · 926 Bytes
/
set_swupdate_defaults.sh
File metadata and controls
15 lines (12 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# auto-install security updates, do not auto-install macOS updates
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool false
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool false
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist EvaluateCriticalEvenIfUnchanged -bool true
# ignore (hide) macOS 10.15
/usr/sbin/softwareupdate --ignore "macOS Catalina"
exit