update vpn script
This commit is contained in:
1 parent
799c336f8c
commit
d5f21d9b75
1 file changed
+6
@@ -29,5 +29,11 @@ function fix-nix-store() {
|
||||
}
|
||||
|
||||
function start-sibli-vpn() {
|
||||
export BW_SESSION="$(bw unlock --raw)"
|
||||
bw unlock --check
|
||||
if [ "$?" -eq 1 ]; then
|
||||
echo "Failed bw auth"
|
||||
return 1
|
||||
fi
|
||||
pritunl-client start ee73mkzn4i5ymbax -p $(bw get item "Pritunl (Sibli)" | jq -r '.fields[0].value')$(bw get totp "Pritunl (Sibli)") && watch -n1 "pritunl-client list"
|
||||
}
|
||||
Reference in new issue
Block a user