photoprism: fix LoadCredential syntax

LoadCredential separates the name and path with `:` not `=`. Previously
starting the service with a configured password file would emit a
systemd warning that the credential is being ignored
This commit is contained in:
Ivan Petkov 2025-12-21 09:47:56 -08:00
commit 03eacf6c96
No known key found for this signature in database

View file

@ -135,10 +135,10 @@ in
];
LoadCredential = [
(lib.optionalString (cfg.passwordFile != null) "PHOTOPRISM_ADMIN_PASSWORD_FILE=${cfg.passwordFile}")
(lib.optionalString (cfg.passwordFile != null) "PHOTOPRISM_ADMIN_PASSWORD_FILE:${cfg.passwordFile}")
(lib.optionalString (
cfg.databasePasswordFile != null
) "PHOTOPRISM_DATABASE_PASSWORD=${cfg.databasePasswordFile}")
) "PHOTOPRISM_DATABASE_PASSWORD:${cfg.databasePasswordFile}")
];
LockPersonality = true;