|
|
@ -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 |
|
|
|