Hi Marc

On Tue, Jul 31, 2007 at 11:53:13AM +0200, Marc Haber wrote:
> 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'm not sure how easy it is to make something automated, while
at the same time, not give away the current flexibility.
One way is to let even numbers be settings options and odd numbers
set it back. In that way you can handle even more complex situations.

> > I think it is all there, however maybe not that well documented.
> 
> It is kind of underdocumented, yes.

Documentation is most welcome. :)

Best regards,

// Ola

> 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
> 

-- 
 --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ----
/  [EMAIL PROTECTED]                   Annebergsslingan 37        \
|  [EMAIL PROTECTED]                   654 65 KARLSTAD            |
|  http://opalsys.net/               Mobile: +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]

Reply via email to