Skip to content

Commit

Permalink
Merge #257: generate-secrets: always run with Bash, stop on errors
Browse files Browse the repository at this point in the history
2a9b918 generate-secrets: always run with Bash, stop on errors (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 2a9b918

Tree-SHA512: 9993f6b1880dabfed60f6ef9e4827c8d1a465572571e353bc81936ebd40f99c8e554a7c7f1b821d16f3dda31aa229d71e3307cad42b0a79d142ff6acc8d4959c
  • Loading branch information
jonasnick committed Oct 24, 2020
2 parents 5ec9ea1 + 2a9b918 commit c0d04b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/generate-secrets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
exec ${pkgs.python3}/bin/python ${rpcauthSrc} "$@"
'';
in
writeScript "generate-secrets" ''
writers.writeBash "generate-secrets" ''
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth ]}
. ${./generate-secrets.sh} ${./openssl.cnf}
''
2 changes: 2 additions & 0 deletions pkgs/generate-secrets/generate-secrets.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

opensslConf=${1:-openssl.cnf}

makePasswordSecret() {
Expand Down

0 comments on commit c0d04b9

Please sign in to comment.