5
#not sure how to specify local destination to wget.
5
#TODO the problem with this wget command is that it won't try again after a 404
6
#and sometimes you get a 404 if one of the servers in the ubuntu web cluster is down
7
WGET="wget --no-verbose --retry-connrefused --tries=10 --timestamping --force-directories --no-host-directories --directory-prefix ${LOCAL_MIRROR}/.."
7
8
mkdir -p $LOCAL_MIRROR
10
10
#download everything listed in the urls file
11
11
for url in `cat $MIMI_ROOT/urls`; do
12
wget -x -nH -N -nv $url
15
15
#Some Other stuff to download
16
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/udeb.list
17
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/initrd.gz
18
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/vmlinuz
19
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/debian-cd_info.tar.gz
20
wget -x -nH -N -nv $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/netboot/netboot.tar.gz
16
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/udeb.list
17
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/initrd.gz
18
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/vmlinuz
19
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/cdrom/debian-cd_info.tar.gz
20
$WGET $REMOTE_MIRROR/dists/$DIST/main/installer-i386/current/images/netboot/netboot.tar.gz
22
#done with wget. go back to same directory.
25
23
#Some Directories Have to get created
26
24
mkdir -p $LOCAL_MIRROR/indices/