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:
@@ -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
|
||||
Reference in New Issue
Block a user