nsbin/vpn.sh

22 lines
570 B
Bash
Raw Normal View History

#!/bin/sh
# 2022-02-10, 10:25, Nico Schottelius
set -e
case "$1" in
lf)
2022-09-14 17:43:59 +00:00
# Ensure we are on the right branch and pass has been unlocked
pass git checkout nico-privat
pass lionfish/nschottelius1 > /dev/null
pass lionfish/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Europe-1
;;
lx)
cd ~/Nextcloud/luxembourg/nico/
sudo openvpn --config nico.ovpn
;;
*)
echo "$0 lf lx"
;;
esac