Update pushover script. Adjust scripts for new syntax.

This commit is contained in:
Darren 'Tadgy' Austin 2021-02-13 16:19:32 +00:00
commit 2b800a5fcf
11 changed files with 246 additions and 124 deletions

View file

@ -57,4 +57,4 @@ grep "^seeder:" /etc/passwd >/dev/null 2>&1 && su - seeder -c /home/seeder/start
}
# Notify that the server has booted.
/opt/bin/pushover -T "Successful boot up: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"
CONFIG_FILE="server" /opt/bin/pushover -T "Successful boot up: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"

View file

@ -3,7 +3,7 @@
# This script will be run when the system is shutdown or rebooted.
# Notify that the server is shutting down.
/opt/bin/pushover -T "Shutting down: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"
CONFIG_FILE="server" /opt/bin/pushover -T "Shutting down: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"
# Stop containers.
[ -x /etc/rc.d/rc.lxc ] && /etc/rc.d/rc.lxc stop