vpn: allow specifying endpoint

This commit is contained in:
Nico Schottelius 2023-08-07 14:10:26 +02:00
parent 5a86af0c8e
commit fd1c80823e
1 changed files with 5 additions and 1 deletions

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 \