From 52e09a287d64fc31ffa84639f58ba0864e6e389f Mon Sep 17 00:00:00 2001 From: vigiroux Date: Fri, 6 Dec 2019 15:00:42 -0500 Subject: [PATCH] Fix bash line continuation in mail-host-notification.sh --- etc/icinga2/scripts/mail-host-notification.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/icinga2/scripts/mail-host-notification.sh b/etc/icinga2/scripts/mail-host-notification.sh index c1e0e72fe..e0e3bbdc6 100755 --- a/etc/icinga2/scripts/mail-host-notification.sh +++ b/etc/icinga2/scripts/mail-host-notification.sh @@ -178,7 +178,7 @@ if [ -n "$MAILFROM" ] ; then ## Debian/Ubuntu use mailutils which requires `-a` to append the header if [ -f /etc/debian_version ]; then - /usr/bin/printf "%b" "$NOTIFICATION_MESSAGE" | tr -d '\015' + /usr/bin/printf "%b" "$NOTIFICATION_MESSAGE" | tr -d '\015' \ | $MAILBIN -a "From: $MAILFROM" -s "$ENCODED_SUBJECT" $USEREMAIL ## Other distributions (RHEL/SUSE/etc.) prefer mailx which sets a sender address with `-r` else