[Update, Config] Add subject for watchdog emails (#4027)

Co-authored-by: Valentin <vbrandner.itsb-b2018@fh-salzburg.ac.at>
This commit is contained in:
Valentin Brandner
2021-03-13 12:36:29 +01:00
committed by GitHub
parent 4feceb08da
commit 3255c08813
4 changed files with 12 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ function mail_error() {
SUBJECT="${BODY}"
BODY="Please see netfilter-mailcow for more details and triggered rules."
else
SUBJECT="Watchdog ALERT: ${1}"
SUBJECT="${WATCHDOG_SUBJECT}: ${1}"
fi
IFS=',' read -r -a MAIL_RCPTS <<< "${WATCHDOG_NOTIFY_EMAIL}"
for rcpt in "${MAIL_RCPTS[@]}"; do