mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-14 20:46:30 +01:00
all template rewritten, some guesswork
This commit is contained in:
parent
e5a7a715c6
commit
ac10a96cc8
10 changed files with 28 additions and 36 deletions
|
|
@ -5,8 +5,8 @@
|
|||
# Modify to fit your setup - set GotifyUrl and GotifyToken.
|
||||
|
||||
send_notification() {
|
||||
Updates=("$@")
|
||||
[ -s "$ScriptWorkDir"/urls.list ] && UpdToString=$( releasenotes ) || UpdToString=$( printf "%s\n" "${Updates[@]}" )
|
||||
[ -s "$ScriptWorkDir"/urls.list ] && releasenotes || Updates=("$@")
|
||||
UpdToString=$( printf '%s\\n' "${Updates[@]}" )
|
||||
FromHost=$(hostname)
|
||||
|
||||
# platform specific notification code would go here
|
||||
|
|
@ -14,7 +14,7 @@ send_notification() {
|
|||
|
||||
# Setting the MessageTitle and MessageBody variable here.
|
||||
MessageTitle="${FromHost} - updates available."
|
||||
MessageBody="Containers on ${FromHost} with updates available: ${UpdToString}"
|
||||
MessageBody=$(printf "🐋 Containers on $FromHost with updates available: \n$UpdToString")
|
||||
|
||||
# Modify to fit your setup:
|
||||
GotifyToken="Your Gotify token here"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue