On Mon, Jul 30, 2007 at 01:35:36PM +0200, Ola Lundqvist wrote:
> On Sat, Jul 28, 2007 at 09:33:03AM +0200, Marc Haber wrote:
> > I have one system that updates clamav-data from cron-apt, and thus
> > updates multiple times daily. This is implemented by having
> > /etc/cron-apt/action.d/4-install-clamav-data with the contents
> > --assume-yes install clamav-data.
> > 
> > This, of course, sends mail multiple times daily.
> > 
> > It would be great to be able to configure cron-apt to only send mail
> > if this call of $APTCOMMAND has given a non-zero exit code, as if an
> > error happened.
> 
> Hmm, isn't that the default behaviour?
> MAILON=error

I have MAILON=upgrade since I'd like to see messages generated by
"normal" cron-apt behavior.

> > I would be willing to submit a patch once you have indicated which way
> > to indicate that this action.d item has to be quiet if no error occured.
> 
> Or do you want to set this per action?

Yes, per action.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to