Updated Script to V2

- New bot manager using timeout instead of schedules
 - Moved accounts to an accounts folder
 - New dynamic Updater
 - Improved VPN Importer to avoid duplicate
 - Switched back to master Bot
 - New config file
This commit is contained in:
2023-06-20 17:14:12 +02:00
parent c00339f024
commit 6c28e77aea
7 changed files with 148 additions and 160 deletions

View File

@@ -1,9 +1,14 @@
#!/bin/bash
folder_path="vpn"
vpn_connections=$(nmcli connection show | grep vpn | awk '{print $1}')
for vpn in $vpn_connections; do
nmcli connection delete "$vpn"
done
folder_path="vpn"
for file in "$folder_path"/*; do
if [[ -f "$file" ]]; then
nmcli con import type openvpn file ./$file
nmcli con import type openvpn file ./"$file"
fi
done