diff options
author | lassulus <lassulus@lassul.us> | 2018-04-21 12:42:30 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-04-21 12:42:30 +0200 |
commit | 2647f93715f73495d2b5cc1537a4ff47de085e1a (patch) | |
tree | e530e8a0afd5609b05b3dfcc9771fd4342e94997 /lass | |
parent | 0164e142e3ce793cb98b237ba2384b3d88a3550c (diff) |
l: generate-secrets -> l-gen-secrets
Diffstat (limited to 'lass')
-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 = { |