nixos/immich: Trim trailing newline from secretSettings file contents (#453162)
This commit is contained in:
@@ -415,7 +415,7 @@ in
|
|||||||
lib.mapAttrsToListRecursive (attrPath: _: ''
|
lib.mapAttrsToListRecursive (attrPath: _: ''
|
||||||
tmp="$(mktemp)"
|
tmp="$(mktemp)"
|
||||||
${lib.getExe pkgs.jq} --rawfile secret "$CREDENTIALS_DIRECTORY/${attrPathToIndex attrPath}" \
|
${lib.getExe pkgs.jq} --rawfile secret "$CREDENTIALS_DIRECTORY/${attrPathToIndex attrPath}" \
|
||||||
'${attrPathToIndex attrPath} = $secret' /run/immich/config.json > "$tmp"
|
'${attrPathToIndex attrPath} = ($secret | rtrimstr("\n"))' /run/immich/config.json > "$tmp"
|
||||||
mv "$tmp" /run/immich/config.json
|
mv "$tmp" /run/immich/config.json
|
||||||
'') cfg.secretSettings
|
'') cfg.secretSettings
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user