home

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

commit c09f223fc893661646fa0cf839258f13f17be325
parent 643aee7a07b997cb2a27f97416b96a3d14924ec8
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 29 Sep 2023 11:56:28 +0200

scripts: change where to find pass.gpg files

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

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

diff --git a/nix/packages/my/scripts/bin/redhat-vpn b/nix/packages/my/scripts/bin/redhat-vpn @@ -33,7 +33,7 @@ then passfile=$(mktemp) echo -n "vpn.secrets.password:" > $passfile - gpg --decrypt $HOME/desktop/documents/Red\ Hat/naruhodo.pass.gpg 2>/dev/null >>$passfile + gpg --decrypt $HOME/sync/naruhodo.pass.gpg 2>/dev/null >>$passfile echo -n "${key}" >> $passfile nmcli connection up ${uuid} passwd-file $passfile @@ -43,7 +43,7 @@ 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) -gpg --decrypt $HOME/desktop/documents/Red\ Hat/pass.gpg 2>/dev/null | kinit vdemeest@REDHAT.COM +gpg --decrypt $HOME/sync/pass.gpg 2>/dev/null | kinit vdemeest@REDHAT.COM # if ! [[ GRAPHICS -eq 0 ]]; then # klist || { # zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM