diff options
author | Steffen Beyer <serpent@tribe-one.org> | 2023-11-11 00:17:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 00:17:53 +0100 |
commit | ae5fe741ba9acade281a9185139e3922811c9696 (patch) | |
tree | f0fd7d62beb1f198c85a035e6e9a1e82ca6de931 | |
parent | 85756458274690397c11f613646ff62b18d50b18 (diff) |
nixos/roundcube: Ignore newline at end of password file
-rw-r--r-- | nixos/modules/services/mail/roundcube.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/roundcube.nix b/nixos/modules/services/mail/roundcube.nix index 22a4e3c451ab1..a277abc1e98a3 100644 --- a/nixos/modules/services/mail/roundcube.nix +++ b/nixos/modules/services/mail/roundcube.nix @@ -131,7 +131,7 @@ in ${lib.optionalString (!localDB) '' $password = file('${cfg.database.passwordFile}')[0]; $password = preg_split('~\\\\.(*SKIP)(*FAIL)|\:~s', $password); - $password = end($password); + $password = rtrim(end($password)); $password = str_replace("\\:", ":", $password); $password = str_replace("\\\\", "\\", $password); ''} |