vpn: add handler for openvpn

This commit is contained in:
Nico Schottelius 2023-08-04 09:20:16 +02:00
parent c19332486f
commit ea0f4b87c6
1 changed files with 9 additions and 0 deletions

9
vpn.sh
View File

@ -16,6 +16,15 @@ case "$1" in
cd ~/Nextcloud/luxembourg/nico/
sudo openvpn --config nico.ovpn
;;
server*)
f=/etc/openvpn/${1}.conf
if [ -f "$f" ]; then
sudo openvpn --config ${f}
else
echo "Config file $f is missing"
exit 1
fi
;;
rm)
case $(hostname) in
bridge)