On Mon, Jul 30, 2007 at 04:19:56PM +0200, Ola Lundqvist wrote:
> On Mon, Jul 30, 2007 at 02:42:12PM +0200, Marc Haber wrote:
> > On Mon, Jul 30, 2007 at 01:35:36PM +0200, Ola Lundqvist wrote:
> > > Or do you want to set this per action?
> > 
> > Yes, per action.
> 
> Ahh well you have /etc/cron-apt/config.d ... Name the configuration file the
> same as the action and that setting will have effect only for that one.
> 
> /etc/cron-apt/action.d/4-install-clamav-data
>       your script here that return non-zero on failure
> /etc/cron-apt/config.d/4-install-clamav-data
>       MAILON=error
>       EXITON=never (if you want that)
> /etc/cron-apt/config.d/5-setback
>       MAILON=changes
>       EXITON=error
> 
> For the next action you set it back to what you want to have.

I see. I'll try that. Having to set things back manually is bad
though, since I have different cron-apt config files which have
differnet MAILON settings. Forunately, my 4-install-clamav-data action
is the last one, but in more complex settings, I'd probably want to
have something like

/etc/cron-apt/config.d/4-install-clamav-data
        MAILONSAVE=$MAILON
/etc/cron-apt/config.d/5-setback
        MAILON=$MAILONSAVE

or some kind of automatically invoked stack which returns to the
defalt setting.

> I think it is all there, however maybe not that well documented.

It is kind of underdocumented, yes.

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