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