diff options
author | tv <tv@krebsco.de> | 2018-04-10 22:11:17 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-04-10 22:11:17 +0200 |
commit | 8d48d325afee416b67721cf64bf1b443fb84fd92 (patch) | |
tree | 9f31ee06d7aa929d8a9e3209dc7225b4e4f18d8f /krebs/5pkgs/simple/hashPassword/default.nix | |
parent | 68ceb8df1318a87f0b121eda5a2a29eab360d578 (diff) | |
parent | 5b8c4d24e274bbf26e85420fc11b5bf7e24ac22d (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/5pkgs/simple/hashPassword/default.nix')
-rw-r--r-- | krebs/5pkgs/simple/hashPassword/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/hashPassword/default.nix b/krebs/5pkgs/simple/hashPassword/default.nix index 3da65ad79..3c604be80 100644 --- a/krebs/5pkgs/simple/hashPassword/default.nix +++ b/krebs/5pkgs/simple/hashPassword/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, ... }: pkgs.writeDashBin "hashPassword" '' - # usage: hashPassword + # usage: hashPassword [...] set -euf export PATH=${lib.makeBinPath (with pkgs; [ @@ -11,5 +11,5 @@ pkgs.writeDashBin "hashPassword" '' ])} salt=$(openssl rand -base64 16 | tr -d '+=' | head -c 16) - exec mkpasswd -m sha-512 -S "$salt" + exec mkpasswd -m sha-512 -S "$salt" "$@" '' |