vpn: allow specifying endpoint
This commit is contained in:
parent
5a86af0c8e
commit
fd1c80823e
6
vpn.sh
6
vpn.sh
|
@ -9,7 +9,11 @@ case "$1" in
|
||||||
pass git checkout nico-privat
|
pass git checkout nico-privat
|
||||||
pass tws/nschottelius1 > /dev/null
|
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
|
# Try to input the password directly, revert to non input if it fails
|
||||||
pass tws/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com \
|
pass tws/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com \
|
||||||
|
|
Loading…
Reference in New Issue