10-openmamba-mirror-daily: don't generate pkglist (it is now a per-arch file) and synchonize 'allmedias*' html indexes
This commit is contained in:
parent
3335e9f153
commit
0159ae3745
@ -1,25 +1,28 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# openmamba daily sync script
|
||||
# (c) 2006-2008 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# (c) 2006-2012 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
. /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 \
|
||||
|
Loading…
Reference in New Issue
Block a user