3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #177106 from martinetd/logrotate

logrotate: do not add mail if 'mail = false' is specified
This commit is contained in:
Aaron Andersen 2022-06-26 23:39:38 +02:00 committed by GitHub
commit e3e82b92e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,7 @@ let
};
mailOption =
if foldr (n: a: a || n ? mail) false (attrValues cfg.settings)
if foldr (n: a: a || (n.mail or false) != false) false (attrValues cfg.settings)
then "--mail=${pkgs.mailutils}/bin/mail"
else "";
in