fixes #7685
Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
-#!/usr/bin/env bash
-template=$(cat <<TEMPLATE
+#!/bin/sh
+template=`cat <<TEMPLATE
***** Icinga *****
Notification Type: $NOTIFICATIONTYPE
Comment: [$NOTIFICATIONAUTHORNAME] $NOTIFICATIONCOMMENT
TEMPLATE
-)
+`
/usr/bin/printf "%b" "$template" | mail -s "$NOTIFICATIONTYPE - $HOSTDISPLAYNAME is $HOSTSTATE" $USEREMAIL
-#!/usr/bin/env bash
-template=$(cat <<TEMPLATE
+#!/bin/sh
+template=`cat <<TEMPLATE
***** Icinga *****
Notification Type: $NOTIFICATIONTYPE
Comment: [$NOTIFICATIONAUTHORNAME] $NOTIFICATIONCOMMENT
TEMPLATE
-)
+`
/usr/bin/printf "%b" "$template" | mail -s "$NOTIFICATIONTYPE - $HOSTDISPLAYNAME - $SERVICEDISPLAYNAME is $SERVICESTATE" $USEREMAIL