diff options
author | Aaron Andersen <aaron@fosslib.net> | 2022-06-26 23:39:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 23:39:38 +0200 |
commit | e3e82b92e8223a0a5487f64e2d04c842326ccfd3 (patch) | |
tree | 92f335ca638d85817da1180efc1fce9ee9328c6f /nixos | |
parent | b861459f18c500f735dd1150f0b1eb504c877faa (diff) | |
parent | f878c8994f5e0e2dda73fc347940e439080ee2a7 (diff) |
Merge pull request #177106 from martinetd/logrotate
logrotate: do not add mail if 'mail = false' is specified
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/logging/logrotate.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/logging/logrotate.nix b/nixos/modules/services/logging/logrotate.nix index e6eb0552c9e95..dfc58d7d539c4 100644 --- a/nixos/modules/services/logging/logrotate.nix +++ b/nixos/modules/services/logging/logrotate.nix @@ -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 |