]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Setting default mirror to cdn.debian.net in debian template.
authorDaniel Baumann <daniel.baumann@progress-technologies.net>
Tue, 28 Dec 2010 20:32:51 +0000 (21:32 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 28 Dec 2010 20:32:51 +0000 (21:32 +0100)
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-debian.in

index 463d87f08ca118cf079d99ea7afe563ea41a1527..8ec0c290c07e5b8d2c2d2e4ab6a6d691a938960e 100644 (file)
@@ -21,6 +21,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 SUITE=${SUITE:-squeeze}
+MIRROR=${MIRROR:-http://cdn.debian.net/debian}
 
 configure_debian()
 {
@@ -112,7 +113,7 @@ openssh-server
     echo "Downloading debian minimal ..."
     debootstrap --verbose --variant=minbase --arch=$arch \
        --include $packages \
-       "$SUITE" "$cache/partial-$SUITE-$arch" http://ftp.debian.org/debian
+       "$SUITE" "$cache/partial-$SUITE-$arch" $MIRROR
     if [ $? -ne 0 ]; then
        echo "Failed to download the rootfs, aborting."
        return 1