From eb4c4159ff4f6a6ae704c1d34a2cd03004bf9542 Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 6 May 2024 15:28:46 +0100 Subject: [PATCH] Added Script --- run_check.sh | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 run_check.sh diff --git a/run_check.sh b/run_check.sh new file mode 100755 index 0000000..fc080a9 --- /dev/null +++ b/run_check.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +# Mullvad_VPN_Check +# A script that checks for a Mullvad VPN connection and if there isn't one, will send and alert + + +# Set Discord webhook +WEBHOOK_URL="DISCORD_WEBHOOK_URL" + +# Function to run alert +run_alert() { +curl -H "Content-Type: application/json" -X POST --data @- "$WEBHOOK_URL" <