Merge pull request #266746 from serpent213/patch-2
nixos/roundcube: Ignore newline at end of password file
This commit is contained in:
commit
7edd128431
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,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);
|
||||
''}
|
||||
|
|
Loading…
Reference in a new issue