mirror of https://github.com/Icinga/icinga2.git
Remove bashisms from some of the shell scripts
fixes #7685 Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
parent
078125bdec
commit
ba5f20224e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue