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