mysql-server

Pettit, Paul ismanager at ccbnpts.com
Wed Mar 30 17:28:51 UTC 2005


> Michal Jaegermann
> 
> On Wed, Mar 30, 2005 at 10:25:24AM -0600, Pettit, Paul wrote:
> > > David Rees wrote:
> > >  ... add the following to root's
> > > crontab:
> > > 
> > > 0 7 * * 1,2,3,4,5 /etc/<somewhere>/yum.cron
> > > 
> > 
> > Yeah that will work for now but dealing with holidays is a bit more
> > tricky. Yum nor Crom really don't have any method for 
> dealing with it
> 
> Sigh!  As it was sugested already you start your update script
> with something of that sort
> 

*sigh* Yes I know. 

> #!/bin/bash
> .....
> today=$(date +%Y%m%d)
> 
> while read banned comment; do
>   [ "$today" = "$banned" ] && exit 0
> done < /usr/local/share/my_no_update_day_list
> .....
> # now we are running yum or whatever else
> ....
> 
> and what you put on /usr/local/share/my_no_update_day_list is entirely
> up to you and is really not possible for anybody else to know what
> particular policies you may desire.
> 

That's a good addition. Thanks. 

> BTW - "1,2,3,4,5" above can be also written as "1-5" or "mon-fri" if
> you prefer.  Once again - 'man 5 crontab'.
> 

I didn't think it nessisary to take Dave to task on such a simple thing.

There is however a possible reason to leave it as '1,2,3,4,5'. That way
all you need to do is delete a single entry to blank out a day instead
of rewriting '1-5' into '1,2,4,5' (i.e. blanking out Wed) each time.
Meh, just a thought.

> Can we stop all of that now?
> 
>    Michal
> 

Stop all what? I think the discussion has run it's course actually.
Beyond a few comments here and there.

As for providing a script / documentation for admins to better control
updates from FL via Yum why would we stop that?

Paul Pettit




More information about the fedora-legacy-list mailing list