Files
runner-images/images/macos/scripts/build/disable-auto-updates.sh
2023-11-15 12:12:28 +01:00

8 lines
357 B
Bash

#!/bin/bash -e -o pipefail
# Disabling automatic updates
sudo softwareupdate --schedule off
defaults write com.apple.SoftwareUpdate AutomaticDownload -int 0
defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 0
defaults write com.apple.commerce AutoUpdate -bool false
defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false