This commit is contained in:
Brian Zalewski 2023-06-14 05:54:15 +00:00
parent 7998411fc9
commit 4260893b48
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?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>Label</key>
<string>com.apple.automatedupdates</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/softwareupdate</string>
<string>-i -a</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
### Enable automated updates on macOS
if [ -f "$HOME/Library/LaunchDaemons/com.apple.automatedupdates.plist" ]; then
sudo launchctl load "$HOME/Library/LaunchDaemons/com.apple.automatedupdates.plist"
fi