Latest
This commit is contained in:
parent
7998411fc9
commit
4260893b48
2 changed files with 24 additions and 0 deletions
18
home/Library/LaunchDaemons/com.apple.automatedupdates.plist
Normal file
18
home/Library/LaunchDaemons/com.apple.automatedupdates.plist
Normal 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>
|
|
@ -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
|
Loading…
Reference in a new issue