]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: Fix default mirrors
authorGu1 <gu1@aeroxteam.fr>
Tue, 28 Oct 2014 01:14:28 +0000 (02:14 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 6 Nov 2014 18:41:02 +0000 (13:41 -0500)
Fix a typo in the lines inserted in the default sources.list.
Change the default mirror to http.debian.net which is (supposedly) more
accurate and better than cdn.debian.net for a generic configuration.
Use security.debian.org directly for the {release}/updates repository.

Signed-off-by: Gu1 <gu1@aeroxteam.fr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-debian.in

index dc2ae939b14de30206f4d39042eb7847c9bf6b9e..5ffbe21630560f1bf4c072678daca56d0af73674 100644 (file)
@@ -33,8 +33,8 @@ done
 # Make sure the usual locations are in PATH
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
 
-MIRROR=${MIRROR:-http://cdn.debian.net/debian}
-SECURITY_MIRROR=${SECURITY_MIRROR:-http://cdn.debian.net/debian-security}
+MIRROR=${MIRROR:-http://http.debian.net/debian}
+SECURITY_MIRROR=${SECURITY_MIRROR:-http://security.debian.org/}
 LOCALSTATEDIR="@LOCALSTATEDIR@"
 LXC_TEMPLATE_CONFIG="@LXCTEMPLATECONFIG@"
 
@@ -167,8 +167,8 @@ write_sourceslist()
     fi
 
     cat >> "${rootfs}/etc/apt/sources.list" << EOF
-${prefix} $MIRROR          ${release}        main contrib non-free
-${prefix} $SECURITY_MIRROR ${release}/update main contrib non-free
+${prefix} $MIRROR          ${release}         main contrib non-free
+${prefix} $SECURITY_MIRROR ${release}/updates main contrib non-free
 EOF
 }