On Fri, 13 Jun 2003 04:13:20 +0100
Dhruba Bandopadhyay <[EMAIL PROTECTED]> wrote:

> Tracy McKibben wrote:
> > Just curious to hear how others are doing scheduled updates.  I
> > currently am doing an "emerge -U world" each night on my
> > workstations, "emerge -Up world" on my server with the results
> > emailed to me.  Is this pretty much what others are doing?  I
> > wondered about adding --deep, but that one kind of scares me.
> > 
> > Suggestions, helpful advice?
>

Here is my cron task, I do it weekly.

#!/bin/bash
# /etc/cron.weekly/portage-sync.cron

emerge sync &>/dev/null

# I should put a check in here to make sure that the
# emerge sync is completed sucessfully.

temp=`emerge -DUuvlp world`

# temp will now have all the lines of the new updates
# and their respective changelog entries. (thanks to
# Dhruba Bandopadhyay <[EMAIL PROTECTED]>!)

if [ "$temp" != "" ]; then
    echo $temp | cat -s | mutt -x root
    emerge -uUDf world
else
    echo "Nothing to update?!" | mutt -x root
fi

#end of /etc/cron.weekly/portage-sync.cron

-- 
Life exists for no known purpose.

--
[EMAIL PROTECTED] mailing list

Reply via email to