- 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
14 lines
293 B
Bash
14 lines
293 B
Bash
#!/bin/bash
|
|
|
|
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"
|
|
fi
|
|
done |