-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gilles Mocellin wrote:
> On Tue, Nov 26, 2002 at 11:53:05PM -0500, Austin Acton wrote:
>
>>On Tue, 2002-11-26 at 22:17, daniel beck wrote:
>>
>>>else :-/ . Could also be nice to update the system
>>>with a deamon. Was just a little idea
>>
>>cd /etc/cron.hourly
>>echo '#!/bin/sh' > urpmi.cron
>>echo 'urpmi --update --auto-select' >> urpmi.cron
>>
>
> I think you should do a urpmi.update -a before, no ?
Not necessarily. urpmi.update needs an '--update' flag. I don't think I
need to update my plf and jpackage hdlists to do updates ... since
'urpmi --update' won't use them anyway.
And, unfortunately, one of the updates (python) for some reason required
a package from main that wasn't in updates (libdb1?), so
'urpmi --update --auto-select --auto'
failed.
Anyway, the final script should be something like this:
#!/bin/bash
# Check for CVS
if [ -e /etc/CVS ]; then
(cd /etc/
echo "Automatic commit before updates on `date +%Y%m%d`"|cvs commit
)
fi
# This one needs a new flag for urpmi.update
urpmi.update --update 2>> /var/log/updates
urpmi --auto-select --auto>> /var/log/updates
Of course, at present, a cooker box needs '--no-verify-rpm' to update
since contrib has no gpg sigs. This is what has been running for about
two weeks on my cooker box:
#!/bin/sh
unset ftp_proxy
unset http_proxy
urpmi.update ftp1 ftp2 2>> /var/log/updates
urpmi --auto-select --auto --no-verify-rpm >> /var/log/updates
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE95RfNrJK6UGDSBKcRAowaAKCRjIQQYPGpzCCxt85QXUVXkuFOrACgk51s
d9uRjjhY7mhUptEE+wHkli0=
=BA7P
-----END PGP SIGNATURE-----