home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit d5d3344152d610051d09e050b6c067e8868855cc
parent 7c77cb86a2b4942d02f345c77bad35ccb913b691
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue, 30 Aug 2022 12:30:16 +0200

redhat-vpn: one less thing to write

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mnix/packages/my/scripts/bin/redhat-vpn | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/nix/packages/my/scripts/bin/redhat-vpn b/nix/packages/my/scripts/bin/redhat-vpn @@ -43,8 +43,9 @@ else $NOTIFY_CMD "VPN ${name} is already connected." "You are already connected to the Red Hat VPN, let's work !" fi # Ask for kerberos password if klist returns an error (no creds) -if ! [[ GRAPHICS -eq 0 ]]; then - klist || { - zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM - } -fi +gpg --decrypt $HOME/desktop/documents/Red\ Hat/pass.gpg 2>/dev/null | kinit vdemeest@REDHAT.COM +# if ! [[ GRAPHICS -eq 0 ]]; then +# klist || { +# zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM +# } +# fi