vpn: allow specifying endpoint

This commit is contained in:
Nico Schottelius 2023-08-07 14:10:26 +02:00
parent 5a86af0c8e
commit fd1c80823e

6
vpn.sh
View file

@ -9,7 +9,11 @@ case "$1" in
pass git checkout nico-privat
pass tws/nschottelius1 > /dev/null
authgroup=Europe
if [ "$2" ]; then
authgroup="$2"
else
authgroup=Europe
fi
# Try to input the password directly, revert to non input if it fails
pass tws/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com \