Browse Source

Added sendEmail binary existence

pull/1/head
Julien Escario 4 years ago
parent
commit
486570e876
  1. 6
      monitoring/altinea_monitoring_request.sh

6
monitoring/altinea_monitoring_request.sh

@ -7,6 +7,12 @@ DEBUG() {
# Define VPN interface name # Define VPN interface name
VPNIF="vpnaltinea" 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 if ! [ -x "$(command -v jq)" ]; then
echo "jq could not be found, please install it with :" echo "jq could not be found, please install it with :"
echo "apt install jq" echo "apt install jq"

Loading…
Cancel
Save