Commit 5d20559c by Gu1 Committed by Stéphane Graber

lxc-debian: Fix default mirrors

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: 's avatarGu1 <gu1@aeroxteam.fr> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent ac00e8f2
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment