Merge pull request #177106 from martinetd/logrotate

logrotate: do not add mail if 'mail = false' is specified
main
Aaron Andersen 2 years ago committed by GitHub
commit e3e82b92e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save