Files
mcr-bot/setup-vpn.sh
Lightemerald 6c28e77aea 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
2023-06-20 17:14:12 +02:00

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