@cryptotaxi247 / netdata-1 / commits / c371cecdf

alarm-email.sh should exit if there is no way to send an email

Costa Tsaousis (ktsaou) committed Sep 4, 2016 at 14:37 UTC c371cecdf746d4f6d612818d52c9d963e8fab902
1 file changed +1
plugins.d/alarm-email.sh
+1
@@ -6,6 +6,7 @@ sendmail="$(which sendmail 2>/dev/null || command -v sendmail 2>/dev/null)"
6 if [ -z "${sendmail}" ]
7 then
8 echo >&2 "I cannot send emails - there is no sendmail command available."
9 + exit 1
10 fi
11
12 default_recipient_for_all_roles="root"