home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0175276c19f1176704c35eb058a6b0afbff0ae32
parent ffeffc87a8232efd872d41f0b01a830d131a4c07
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 25 Aug 2021 12:53:40 +0200

Update redhat-vpn to not always ask for krb password

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

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

diff --git a/nix/packages/my/scripts/bin/redhat-vpn b/nix/packages/my/scripts/bin/redhat-vpn @@ -22,4 +22,7 @@ then else notify-send "VPN ${name} is already connected." "You are already connected to the Red Hat VPN, let's work !" fi -zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM +# Ask for kerberos password if klist returns an error (no creds) +klist || { + zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM +}