Unverified Commit e3e82b92 authored by Aaron Andersen's avatar Aaron Andersen Committed by GitHub
Browse files

Merge pull request #177106 from martinetd/logrotate

logrotate: do not add mail if 'mail = false' is specified
parents b861459f f878c899
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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