Improve healthcheck

This commit is contained in:
Tobias Reisinger 2022-11-28 19:27:37 +01:00
parent e7c78aa678
commit ee59f0258b
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
11 changed files with 20 additions and 19 deletions
healthcheck/data

9
healthcheck/data/mail Executable file
View 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