From f583e5b93d172fe93f28ba3c078931c6759faafb Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Mon, 14 Sep 2020 12:19:10 +0200 Subject: [PATCH] Added auto-install of sendemail and jq --- monitoring/altinea_monitoring_request.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/monitoring/altinea_monitoring_request.sh b/monitoring/altinea_monitoring_request.sh index e0b1044..23eb848 100644 --- a/monitoring/altinea_monitoring_request.sh +++ b/monitoring/altinea_monitoring_request.sh @@ -11,15 +11,13 @@ DEBUG() { VPNIF="vpnaltinea" if ! [ -x "$(command -v sendEmail)" ]; then - echo "sendEmail could not be found, please install it with :" - echo "apt install sendemail" - exit 99; + echo "sendEmail could not be found, I'll install it for you" + apt install -y sendemail fi if ! [ -x "$(command -v jq)" ]; then - echo "jq could not be found, please install it with :" - echo "apt install jq" - exit 99; + echo "jq could not be found, I'll install it for you" + apt install -y jq fi # Get public IP addresses