mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 07:48:14 +01:00
Update notify_DSM.sh
Added the passed array to a variable. Created printable string with newlines.
This commit is contained in:
parent
3f56af0c8a
commit
342ff271ca
1 changed files with 6 additions and 4 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
# copy/rename this file to notify.sh to enable email notifications on synology DSM
|
# copy/rename this file to notify.sh to enable email notifications on synology DSM
|
||||||
|
|
||||||
send_notification() {
|
send_notification() {
|
||||||
|
Updates=("$@")
|
||||||
|
UpdToString=$( printf "%s\n" "${Updates[@]}" )
|
||||||
# change this to your usual destination for synology DSM notification emails
|
# change this to your usual destination for synology DSM notification emails
|
||||||
SendMailTo=me@mydomain.com
|
SendMailTo=me@mydomain.com
|
||||||
FromHost=$(hostname)
|
FromHost=$(hostname)
|
||||||
|
|
@ -18,8 +19,9 @@ Content-Transfer-Encoding: 7bit
|
||||||
|
|
||||||
The following docker packages on $FromHost need to be updated:
|
The following docker packages on $FromHost need to be updated:
|
||||||
|
|
||||||
$@
|
"$UpdToString"
|
||||||
|
|
||||||
|
From $FromHost
|
||||||
|
|
||||||
From $FromHost
|
|
||||||
__EOF
|
__EOF
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue