Remove bashisms from some of the shell scripts

fixes #7685

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
Lars Engels 2014-11-14 18:28:48 +01:00 committed by Gunnar Beutner
parent 078125bdec
commit ba5f20224e
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
template=$(cat <<TEMPLATE
#!/bin/sh
template=`cat <<TEMPLATE
***** Icinga *****
Notification Type: $NOTIFICATIONTYPE
@ -14,7 +14,7 @@ Additional Info: $HOSTOUTPUT
Comment: [$NOTIFICATIONAUTHORNAME] $NOTIFICATIONCOMMENT
TEMPLATE
)
`
/usr/bin/printf "%b" "$template" | mail -s "$NOTIFICATIONTYPE - $HOSTDISPLAYNAME is $HOSTSTATE" $USEREMAIL

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
template=$(cat <<TEMPLATE
#!/bin/sh
template=`cat <<TEMPLATE
***** Icinga *****
Notification Type: $NOTIFICATIONTYPE
@ -15,7 +15,7 @@ Additional Info: $SERVICEOUTPUT
Comment: [$NOTIFICATIONAUTHORNAME] $NOTIFICATIONCOMMENT
TEMPLATE
)
`
/usr/bin/printf "%b" "$template" | mail -s "$NOTIFICATIONTYPE - $HOSTDISPLAYNAME - $SERVICEDISPLAYNAME is $SERVICESTATE" $USEREMAIL