sp-modules: use jq exit status code

This commit is contained in:
Alexander Tomokhov
2023-12-03 10:37:37 +04:00
parent 4716b9bf19
commit ade4dc08b1
3 changed files with 7 additions and 6 deletions

View File

@@ -61,7 +61,8 @@ in
path = with pkgs; [ coreutils jq ];
script = ''
set -o nounset
password=$(jq -r '.databasePassword' ${secrets-filepath})
password="$(jq -re '.databasePassword' ${secrets-filepath})"
filecontents=$(cat <<- EOF
import Config
config :pleroma, Pleroma.Repo,