Added config file, improved setup and updater scripts.

This commit is contained in:
2023-05-18 16:56:49 +02:00
parent 7b297b75be
commit 530fff24ea
7 changed files with 35 additions and 13 deletions

View File

@@ -16,11 +16,15 @@ then
exit
fi
interval=300
schedule=("06:00" "08:00" "10:00" "12:00" "14:00" "16:00" "18:00" "20:00")
vpns=$(nmcli connection show | grep vpn | awk '{print $1}')
retries=3
webhook=''
config_file="config.txt"
if [ -f "$config_file" ]; then
source "$config_file"
else
echo "Config file not found."
exit 1
fi
while true
do