22-03-2025
-Makefile -.plist
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
install:
|
||||||
|
./update-motd.sh
|
||||||
|
mkdir -p ${HOME}/Library/LaunchAgents/
|
||||||
|
cp com.bruno21.update-motd.plist ${HOME}/Library/LaunchAgents/
|
||||||
|
launchctl load -w ${HOME}/Library/LaunchAgents/com.bruno21.update-motd.plist
|
||||||
|
launchctl list | grep .update-motd
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
sudo launchctl unload -w ${HOME}/Library/LaunchAgents/com.bruno21.update-motd.plist
|
||||||
|
rm ${HOME}/Library/LaunchAgents/com.bruno21.update-motd.plist
|
||||||
|
launchctl list | grep update-motd || exit 0
|
||||||
69
com.bruno21.update-motd.plist
Normal file
69
com.bruno21.update-motd.plist
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>com.bruno21.update-motd</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>sh</string>
|
||||||
|
<string>-c</string>
|
||||||
|
<string>${HOME}/.local/bin/update-motd.sh</string>
|
||||||
|
</array>
|
||||||
|
<key>StartCalendarInterval</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>5</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>10</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>15</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>20</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>25</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>30</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>35</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>40</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>45</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>50</integer>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Minute</key>
|
||||||
|
<integer>55</integer>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>StandardOutPath</key>
|
||||||
|
<string>/tmp/com.bruno21.update-motd.out</string>
|
||||||
|
<key>StandardErrorPath</key>
|
||||||
|
<string>/tmp/com.bruno21.update-motd.err</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Reference in New Issue
Block a user