diff options
author | jeschli <jeschli@gmail.com> | 2018-05-04 16:57:21 +0200 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-05-04 16:57:21 +0200 |
commit | 74cab14502ce3f482d96759eed4c7e648204e78e (patch) | |
tree | 1f82d99cc0dafdf87d33fcc3e3a9a865f95f3384 /lass/5pkgs | |
parent | 4f2bf83ff906b9ee0421dabba4ff7e9dab5b7802 (diff) | |
parent | b81fe57e3e137a2449fb8cc5e627e484d84bb00e (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'lass/5pkgs')
-rw-r--r-- | lass/5pkgs/l-gen-secrets/default.nix (renamed from lass/5pkgs/generate-secrets/default.nix) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lass/5pkgs/generate-secrets/default.nix b/lass/5pkgs/l-gen-secrets/default.nix index 5a4afe7c5..4b25fbd4c 100644 --- a/lass/5pkgs/generate-secrets/default.nix +++ b/lass/5pkgs/l-gen-secrets/default.nix @@ -1,5 +1,5 @@ { pkgs }: -pkgs.writeDashBin "generate-secrets" '' +pkgs.writeDashBin "l-gen-secrets" '' HOSTNAME="$1" TMPDIR=$(${pkgs.coreutils}/bin/mktemp -d) PASSWORD=$(${pkgs.pwgen}/bin/pwgen 25 1) @@ -17,9 +17,9 @@ pkgs.writeDashBin "generate-secrets" '' cd $TMPDIR for x in *; do - ${pkgs.coreutils}/bin/cat $x | ${pkgs.pass}/bin/pass insert -m hosts/$HOSTNAME/$x > /dev/null + ${pkgs.coreutils}/bin/cat $x | ${pkgs.pass}/bin/pass insert -m krebs-secrets/$HOSTNAME/$x > /dev/null done - echo $PASSWORD | ${pkgs.pass}/bin/pass insert -m admin/hosts/$HOSTNAME/pass > /dev/null + echo $PASSWORD | ${pkgs.pass}/bin/pass insert -m hosts/$HOSTNAME/pass > /dev/null cat <<EOF $HOSTNAME = { |