From 0159ae374513847b8cedd64e69b1388f8cc9abc6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 12 Mar 2012 15:36:36 +0100 Subject: [PATCH] 10-openmamba-mirror-daily: don't generate pkglist (it is now a per-arch file) and synchonize 'allmedias*' html indexes --- etc/cron.daily/10-openmamba-mirror-daily | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/etc/cron.daily/10-openmamba-mirror-daily b/etc/cron.daily/10-openmamba-mirror-daily index feaa724..6e66814 100755 --- a/etc/cron.daily/10-openmamba-mirror-daily +++ b/etc/cron.daily/10-openmamba-mirror-daily @@ -1,25 +1,28 @@ #!/bin/bash # # openmamba daily sync script -# (c) 2006-2008 by Silvan Calarco +# (c) 2006-2012 by Silvan Calarco # . /etc/sysconfig/openmamba-central RSYNC_OPT="-av --no-o --delete --delete-after" -echo "Creating and syncing pkglist" -for a in ${local_reps[*]}; do - distromatic -q -t $a --genpkglist > $local_ftp/$a/pkglist - [ "$ftpsync" ] && { - curl -s -T $local_ftp/$a/pkglist -u$ftpuser:$ftppass --url $dest_ftp/pub/openmamba/$a/ - } -done - if [ "$ftpsync" ]; then echo "Syncing openmamba devel utils dir" ftpsync -q -p $local_ftp/devel/utils \ $dest_ftp/pub/openmamba/devel/utils ftpuser=$ftpuser ftppasswd=$ftppass fi +echo "Syncing openmamba allmedias files" +if [ "$ftpsync" ]; then + ftpsync -q -p $local_ftp/allmedias* \ + $dest_ftp/pub/openmamba/ ftpuser=$ftpuser ftppasswd=$ftppass +else + rsync \ + $RSYNC_OPT \ + $local_ftp/allmedias* $dest_rsync \ + --password-file=/etc/rsync.password --bwlimit=400 +fi + echo "Syncing openmamba db dir" if [ "$ftpsync" ]; then ftpsync -q -p $local_ftp/db \