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:
commit
e3e82b92e8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue