Browse Source

Added auto-install of sendemail and jq

pull/1/head
Julien Escario 4 years ago
parent
commit
f583e5b93d
  1. 10
      monitoring/altinea_monitoring_request.sh

10
monitoring/altinea_monitoring_request.sh

@ -11,15 +11,13 @@ DEBUG() {
VPNIF="vpnaltinea" VPNIF="vpnaltinea"
if ! [ -x "$(command -v sendEmail)" ]; then 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 fi
if ! [ -x "$(command -v jq)" ]; then 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 fi
# Get public IP addresses # Get public IP addresses

Loading…
Cancel
Save