generate-secrets: always run with Bash, stop on errors
This commit is contained in:
parent
5ec9ea1f6d
commit
2a9b918f72
@ -9,7 +9,7 @@ let
|
|||||||
exec ${pkgs.python3}/bin/python ${rpcauthSrc} "$@"
|
exec ${pkgs.python3}/bin/python ${rpcauthSrc} "$@"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
writeScript "generate-secrets" ''
|
writers.writeBash "generate-secrets" ''
|
||||||
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth ]}
|
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth ]}
|
||||||
. ${./generate-secrets.sh} ${./openssl.cnf}
|
. ${./generate-secrets.sh} ${./openssl.cnf}
|
||||||
''
|
''
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
opensslConf=${1:-openssl.cnf}
|
opensslConf=${1:-openssl.cnf}
|
||||||
|
|
||||||
makePasswordSecret() {
|
makePasswordSecret() {
|
||||||
|
Loading…
Reference in New Issue
Block a user