Hi On Sat, Jul 28, 2007 at 09:33:03AM +0200, Marc Haber wrote: > Package: cron-apt > Version: 0.4.15 > Severity: wishlist > > Hi, > > 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 > This could be implemented by having a keyword inside the action.d file > or in the action.d file name (for example, > action.d/q4-install-clamav-data, triggering on the file name starting > with "q"), and by an additional condition in the output block starting > at "No error has occurred". > > 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? Regards, // Ola > Greetings > Marc > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | http://opalsys.net/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

