generate-secrets: always run with Bash, stop on errors

This commit is contained in:
Erik Arvstedt 2020-10-23 10:45:49 +02:00
parent 5ec9ea1f6d
commit 2a9b918f72
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 3 additions and 1 deletions

View File

@ -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}
''

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
opensslConf=${1:-openssl.cnf}
makePasswordSecret() {