motd_updater.plist

edit · copy to clipboard · view raw · download launched.motd_updater.plist running /usr/local/motd_updater.sh:

<?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>launched.motd_updater</string>
	<key>ProgramArguments</key>
	<array>
		<string>sh</string>
		<string>-c</string>
		<string>/usr/local/motd_updater.sh</string>
	</array>
	<key>StartCalendarInterval</key>
	<dict>
		<key>Hour</key>
		<integer>8</integer>
	</dict>
</dict>
</plist>

To install: curl https://launched.zerowidth.com/plists/f4774c00-702e-0138-55ba-0d326bcef2a0/install | sh copy to clipboard · view install script

To install manually:

mkdir -p ~/Library/LaunchAgents
curl -o ~/Library/LaunchAgents/launched.motd_updater.plist https://launched.zerowidth.com/plists/f4774c00-702e-0138-55ba-0d326bcef2a0.xml
launchctl load -w ~/Library/LaunchAgents/launched.motd_updater.plist

Or, to install as root:

curl -o ~/Downloads/launched.motd_updater.plist https://launched.zerowidth.com/plists/f4774c00-702e-0138-55ba-0d326bcef2a0.xml
sudo cp ~/Downloads/launched.motd_updater.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/launched.motd_updater.plist