[Spacewalk-list] spacewalk-repo-sync and cron
Thomas Bendler
ml at bendler-net.de
Fri Nov 27 19:43:10 UTC 2009
Hi Jonathan,
On Fri, Nov 27, 2009 at 2:40 PM, <lists at xistenz.org> wrote:
> [...]
> Thank you for your suggestion, unfortunately it doesn't seem to work as
> last night's run resulted in identical errors. The cron is still unable to
> retrieve the metadata.
> [...]
>
if spacewalk-repo-sync isn't able to retrieve the metadata it is most likely
that the URL is wrong. For CentOS the following is working:
### Architectures ###
ARCH="x86_64 i386"
### Get packages for CentOS (i386 and x86_64) ###
for archItem in ${ARCH}; do
spacewalk-repo-sync --channel centos-5-${archItem} --type yum
--label base \
--url http://ftp.tu-chemnitz.de/pub/linux/centos/5.4/os/${archItem}
spacewalk-repo-sync --channel centos-5-${archItem}-updates --type yum
--label updates \
--url http://ftp.tu-chemnitz.de/pub/linux/centos/5.4/updates/${archItem}
spacewalk-repo-sync --channel centos-5-${archItem}-extras --type yum
--label extras \
--url http://ftp.tu-chemnitz.de/pub/linux/centos/5.4/extras/${archItem}
done
Regards, Thomas
--
thomas bendler (systemadministration/network/SAP)
cimt consulting ag fon: +49 (163) 6081 302
burchardstrasse 17 fax: +49 (40) 5 33 02-22
20095 hamburg http://www.cimt.de/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20091127/f70af94e/attachment.htm>
More information about the Spacewalk-list
mailing list