vpn: update ep
This commit is contained in:
parent
6892c37d35
commit
5a86af0c8e
13
vpn.sh
13
vpn.sh
|
@ -4,13 +4,20 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
lf)
|
tws)
|
||||||
# Ensure we are on the right branch and pass has been unlocked
|
# Ensure we are on the right branch and pass has been unlocked
|
||||||
pass git checkout nico-privat
|
pass git checkout nico-privat
|
||||||
pass lionfish/nschottelius1 > /dev/null
|
pass tws/nschottelius1 > /dev/null
|
||||||
|
|
||||||
|
authgroup=Europe
|
||||||
|
|
||||||
# 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 lionfish/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Spain || sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Spain
|
pass tws/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com \
|
||||||
|
--allow-insecure-crypto --user nschottelius1 \
|
||||||
|
--passwd-on-stdin --authgroup=$authgroup || \
|
||||||
|
sudo openconnect --protocol=gp portal.techcorpapps.com \
|
||||||
|
--allow-insecure-crypto --user nschottelius1 \
|
||||||
|
--passwd-on-stdin --authgroup=$authgroup
|
||||||
;;
|
;;
|
||||||
lx)
|
lx)
|
||||||
cd ~/Nextcloud/luxembourg/nico/
|
cd ~/Nextcloud/luxembourg/nico/
|
||||||
|
|
Loading…
Reference in New Issue