From 486570e87667655583ec99d5a3ac615597a6661d Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Thu, 23 Jul 2020 15:43:11 +0200 Subject: [PATCH] Added sendEmail binary existence --- monitoring/altinea_monitoring_request.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitoring/altinea_monitoring_request.sh b/monitoring/altinea_monitoring_request.sh index 1e09b06..07ff8fc 100644 --- a/monitoring/altinea_monitoring_request.sh +++ b/monitoring/altinea_monitoring_request.sh @@ -7,6 +7,12 @@ DEBUG() { # Define VPN interface name VPNIF="vpnaltinea" +if ! [ -x "$(command -v sendEmail)" ]; then + echo "sendEmail could not be found, please install it with :" + echo "apt install sendEmail" + exit 99; +fi + if ! [ -x "$(command -v jq)" ]; then echo "jq could not be found, please install it with :" echo "apt install jq"