#!/bin/bash
METHOD[0]=http
HOST[0]=download.webmin.com
DIREC[0]=download/repository
DIST[0]=sarge
SECTION[0]=contrib
DEST[0]=webmin
METHOD[1]=http
HOST[1]=archive.canonical.com
DIREC[1]=ubuntu
DIST[1]=intrepid,intrepid-backports,intrepid-proposed,intrepid-security,intrepid-updates,jaunty,jaunty-backports,jaunty-proposed,jaunty-security,jaunty-updates
SECTION[1]=partner
DEST[1]=archive
METHOD[2]=http
HOST[2]=www.fbreader.org
DIREC[2]=desktop/debian
DIST[2]=etch
SECTION[2]=main
DEST[2]=fbreader
METHOD[3]=http
HOST[3]=download.virtualbox.org
DIREC[3]=virtualbox/debian
DIST[3]=intrepid
SECTION[3]=non-free
DEST[3]=virtualbox
METHOD[4]=http
HOST[4]=qutim.org
DIREC[4]=debian
DIST[4]=unstable
SECTION[4]=main
DEST[4]=qutim
METHOD[5]=http
HOST[5]=wine.budgetdedicated.com
DIREC[5]=apt
DIST[5]=intrepid,jaunty
SECTION[5]=main
DEST[5]=wine
METHOD[6]=http
HOST[6]=drbl.sourceforge.net
DIREC[6]=drbl-core
DIST[6]=drbl
SECTION[6]=stable
DEST[6]=clonezilla
METHOD[7]=http
HOST[7]=dl.google.com
DIREC[7]=linux/deb
DIST[7]=stable,testing
SECTION[7]=non-free
DEST[7]=google
METHOD[8]=http
HOST[8]=apt.mucommander.com
DIREC[8]=//
DIST[8]=stable
SECTION[8]=contrib,main,non-free
DEST[8]=mucommander
METHOD[9]=http
HOST[9]=packages.medibuntu.org
DIREC[9]=//
DIST[9]=intrepid-staging,intrepid,jaunty-staging,jaunty
SECTION[9]=free,non-free
DEST[9]=medibuntu
METHOD[10]=http
HOST[10]=repoubuntusoftware.info
DIREC[10]=//
DIST[10]=intrepid
SECTION[10]=all
DEST[10]=repoubuntusoftware
METHOD[10]=http
HOST[10]=apt.debianchile.org
DIREC[10]=frostwire
DIST[10]=unstable
SECTION[10]=main
DEST[10]=frostwire
METHOD[11]=ftp
HOST[11]=ftp.gajim.org
DIREC[11]=debian
DIST[11]=unstable,stable
SECTION[11]=main
DEST[11]=gajim
METHOD[11]=http
HOST[11]=ppa.launchpad.net
DIREC[11]=gandalfn/ubuntu
DIST[11]=intrepid
SECTION[11]=main,restricted,multiverse,universe
DEST[11]=gandalfn
METHOD[12]=http
HOST[12]=ppa.launchpad.net
DIREC[12]=reacocard-awn/ubuntu
DIST[12]=intrepid
SECTION[12]=main,restricted,multiverse,universe
DEST[12]=reacocard-awn
METHOD[13]=http
HOST[13]=ppa.launchpad.net
DIREC[13]=project-neon/ubuntu
DIST[13]=intrepid
SECTION[13]=main,restricted,multiverse,universe
DEST[13]=project-neon
METHOD[14]=http
HOST[14]=ppa.launchpad.net
DIREC[14]=claws-mail/ubuntu
DIST[14]=intrepid,jaunty
SECTION[14]=main,restricted,multiverse,universe
DEST[14]=claws-mail
METHOD[15]=http
HOST[15]=ppa.launchpad.net
DIREC[15]=gilir/ubuntu
DIST[15]=intrepid,jaunty
SECTION[15]=main,restricted,multiverse,universe
DEST[15]=gilir
METHOD[16]=http
HOST[16]=ppa.launchpad.net
DIREC[16]=stemp/ubuntu
DIST[16]=intrepid,jaunty
SECTION[16]=main,restricted,multiverse,universe
DEST[16]=stemp
METHOD[17]=http
HOST[17]=ppa.launchpad.net
DIREC[17]=lidaobing/ubuntu
DIST[17]=intrepid,jaunty
SECTION[17]=main,restricted,multiverse,universe
DEST[17]=lidaobing
METHOD[18]=http
HOST[18]=ppa.launchpad.net
DIREC[18]=do-core/ubuntu
DIST[18]=intrepid,jaunty
SECTION[18]=main,restricted,multiverse,universe
DEST[18]=do-core
METHOD[19]=http
HOST[19]=ppa.launchpad.net
DIREC[19]=openoffice-pkgs/ubuntu
DIST[19]=intrepid,jaunty
SECTION[19]=main,restricted,multiverse,universe
DEST[19]=openoffice-pkgs
METHOD[20]=http
HOST[20]=ppa.launchpad.net
DIREC[20]=fta/ubuntu
DIST[20]=intrepid,jaunty
SECTION[20]=main,restricted,multiverse,universe
DEST[20]=fta
METHOD[21]=http
HOST[21]=ppa.launchpad.net
DIREC[21]=compiz/ubuntu
DIST[21]=intrepid,jaunty
SECTION[21]=main,restricted,multiverse,universe
DEST[21]=compiz
METHOD[22]=ftp
HOST[22]=ftp.mipt.ru
DIREC[22]=mirror/ubuntu/
DIST[22]=intrepid,intrepid-backports,intrepid-proposed,intrepid-security,intrepid-updates,jaunty,jaunty-backports,jaunty-proposed,jaunty-security,jaunty-updates
SECTION[22]=main,multiverse,restricted,universe
DEST[22]=ubuntu
I=0
K=23
while [ $I -lt $K ]; do
echo "UBUNTU REPOSITORY UPDATE"
echo "Host: ${METHOD[I]}://${HOST[I]}/${DIREC[I]} ${DIST[I]} ${SECTION[I]}"
echo "To directory: /var/www/repo/${DEST[I]}"
debmirror --progress --cleanup --verbose --md5sums --passive --nosource --ignore-release-gpg --ignore-missing-release --ignore-small-error \
--method=${METHOD[I]} --host=${HOST[I]} --root=${DIREC[I]} --dist=${DIST[I]} --section=${SECTION[I]} --arch=i386 /var/www/repo/${DEST[I]} > /var/www/repo/log/${DEST[I]}.`date "+%Y%m%d"`.log
echo " "
echo " "
let I=I+1
done
chmod -R 777 /var/www/repo
но как понимаю он оставляет ключи этих же серверов как можно что бы все репозитарии что я скачиваю изменялись под один ключ, который я создам, и как его создать, и куда нужно ложить?