diff options
author | Felix Bühler <Stunkymonkey@users.noreply.github.com> | 2024-04-17 21:46:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 21:46:52 +0200 |
commit | 671372c8ed0e0a12e1de3e2e93abd19cd1d6c631 (patch) | |
tree | f5534749a85d8c3c5f50d2b9abdf293f6a1c14d8 /nixos/modules/services/web-apps | |
parent | dd1ddc55baaaf0f315a41ef4aa2599537ac3929a (diff) | |
parent | 90e673b1b8e32cd66c7311cb9036a2d2cf32ee4a (diff) |
Merge pull request #304052 from mattchrist/freshrss-authtype-none
nixos/freshrss: fix startup when authType = "none"
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/freshrss.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/freshrss.nix b/nixos/modules/services/web-apps/freshrss.nix index 016c4202e4b3..77c5ecb24617 100644 --- a/nixos/modules/services/web-apps/freshrss.nix +++ b/nixos/modules/services/web-apps/freshrss.nix @@ -268,11 +268,11 @@ in script = let - userScriptArgs = ''--user ${cfg.defaultUser} --password "$(cat ${cfg.passwordFile})"''; - updateUserScript = optionalString (cfg.authType == "form") '' + userScriptArgs = ''--user ${cfg.defaultUser} ${optionalString (cfg.authType == "form") ''--password "$(cat ${cfg.passwordFile})"''}''; + updateUserScript = optionalString (cfg.authType == "form" || cfg.authType == "none") '' ./cli/update-user.php ${userScriptArgs} ''; - createUserScript = optionalString (cfg.authType == "form") '' + createUserScript = optionalString (cfg.authType == "form" || cfg.authType == "none") '' ./cli/create-user.php ${userScriptArgs} ''; in |