PDA

View Full Version : Nightly Auto Update, Linux



Chris
2004-06-17, 12:20
Hi,

Whilst I'm busy posting to the list, I don't know if this will be of any
use to anyone, but this is how I configured my (Fedora) Linux system to
automatically download and install each nightly build without having to
remember to do so ..

I created a shell script, squeeze.sh containing the following (between the
--'s):

--
#!/bin/sh

Filename="slimserver-20$(date +%y)_$(date +%m)_$(date +%d)-1.noarch.rpm"

cd /root/scripts
rm -f *.rpm
wget -Y off -C off -q
http://www.slimdevices.com/downloads/nightly/latest/$Filename
rpm -U $Filename
--

And them simply call the script from my crontab

50 23 * * * sh /root/scripts/squeeze.sh > /dev/null

You may need to play with the time (23:50) depending when you are in the
world, and when the nightly builds are made.

Hope this helps someone.

Cheers,
Chris.