Improve healthcheck
This commit is contained in:
parent
e7c78aa678
commit
ee59f0258b
11 changed files with 20 additions and 19 deletions
healthcheck/data
9
healthcheck/data/mail
Executable file
9
healthcheck/data/mail
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
cd /opt/ || exit
|
||||
|
||||
envsubst < template.msmtprc > /tmp/msmtprc
|
||||
envsubst < mailcheck.template.mail > /tmp/mailcheck.mail
|
||||
|
||||
msmtp -C /tmp/msmtprc -a default "$MAIL_HC_UID@hc-ping.com" < /tmp/mailcheck.mail
|
Reference in a new issue