2023-06-13 22:54:15 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
### Enable automated updates on macOS
|
2023-06-14 00:22:59 -07:00
|
|
|
if [ -d /Applications ] && [ -d /System ]; then
|
|
|
|
if [ -f "$HOME/Library/LaunchDaemons/com.apple.automatedupdates.plist" ] && [ ! -f "/Library/LaunchDaemons/com.apple.automatedupdates.plist" ]; then
|
|
|
|
sudo mkdir -p /Library/LaunchDaemons
|
|
|
|
sudo cp -f "$HOME/Library/LaunchDaemons/com.apple.automatedupdates.plist" "/Library/LaunchDaemons/com.apple.automatedupdates.plist"
|
|
|
|
sudo launchctl load "/Library/LaunchDaemons/com.apple.automatedupdates.plist"
|
|
|
|
fi
|
2023-06-13 22:54:15 -07:00
|
|
|
fi
|