[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hey steve



On Fri, May 28, 2004 at 11:41:40PM -0500, Casey Boone wrote:
> when you set up a box to run apt-get update && apt-get upgrade every night 
> do you do it with a script in a cron job or just apt-get upgrade && apt-get 
> update in the cron job?

cat > /etc/cron.daily/apt <<END
#!/bin/sh

set -e

apt-get -qq update
apt-get -qqy upgrade
apt-get -qq clean
END
chmod 500 /etc/cron.daily/apt

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.