dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 48fecd876ac558ad71fa38f622618901aec5fb7b
parent cddc156494ce50ec4ee00a0030b056de6411b894
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  7 Sep 2020 09:25:00 +0200

Disable auto VPN authentication which wasn't working, print errors to stderr

Diffstat:
M.local/bin/auvpn | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/.local/bin/auvpn b/.local/bin/auvpn @@ -2,13 +2,14 @@ set -e if [ "$(id -u)" = 0 ]; then - printf '%s: error: dont run with root' "${0##*/}" + printf '%s: error: dont run with root' "${0##*/}" >&2 exit 1 fi -pass="$(gpg2 -q -d ~/.password-store/Uni/mit.au.dk-217756.gpg)" -authcode="$(pass otp Uni/2fa-au217756)" +#pass="$(gpg2 -q -d ~/.password-store/Uni/mit.au.dk-217756.gpg)" +#authcode="$(pass otp Uni/2fa-au217756)" +#doas sh -c "printf '%s\n%s\n' '$pass' '$authcode' | \ +# openconnect -u au217756@uni.au.dk --passwd-on-stdin \ +# https://remote1.au.dk/st" -doas sh -c "printf '%s\n%s' '$pass' '$authcode' | \ - openconnect -u au217756@uni.au.dk --passwd-on-stdin \ - https://remote.au.dk/st" +doas openconnect -u au217756@uni.au.dk https://remote1.au.dk/st