htpasswd -> mkpasswd
This commit is contained in:
parent
004c229ca4
commit
a40e9c3abb
8 changed files with 22 additions and 22 deletions
|
@ -5,9 +5,9 @@
|
|||
let
|
||||
hashPassword = password: pkgs.runCommand
|
||||
"password-${password}-hashed"
|
||||
{ buildInputs = [ pkgs.apacheHttpd ]; }
|
||||
{ buildInputs = [ pkgs.mkpasswd ]; inherit password; }
|
||||
''
|
||||
htpasswd -nbB "" "${password}" | cut -d: -f2 > $out
|
||||
mkpasswd -sm bcrypt <<<"$password" > $out
|
||||
'';
|
||||
|
||||
password = pkgs.writeText "password" "password";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue