Fix the syntax error on tt-rss config file

(cherry picked from commit de16da59f2)
This commit is contained in:
Mats Rauhala
2021-12-05 13:02:30 +02:00
committed by github-actions[bot]
parent 7796065f51
commit bb9c1df41a

View File

@@ -18,9 +18,9 @@ let
tt-rss-config = let
password =
if (cfg.database.password != null) then
"${(escape ["'" "\\"] cfg.database.password)}"
"'${(escape ["'" "\\"] cfg.database.password)}'"
else if (cfg.database.passwordFile != null) then
"file_get_contents('${cfg.database.passwordFile}'"
"file_get_contents('${cfg.database.passwordFile}')"
else
""
;
@@ -40,7 +40,7 @@ let
putenv('TTRSS_DB_HOST=${optionalString (cfg.database.host != null) cfg.database.host}');
putenv('TTRSS_DB_USER=${cfg.database.user}');
putenv('TTRSS_DB_NAME=${cfg.database.name}');
putenv('TTRSS_DB_PASS=${password}');
putenv('TTRSS_DB_PASS=' . ${password});
putenv('TTRSS_DB_PORT=${toString dbPort}');
putenv('TTRSS_AUTH_AUTO_CREATE=${boolToString cfg.auth.autoCreate}');