Skip to content

Commit

Permalink
Create the apt proxy in the cache instead of the 1st container
Browse files Browse the repository at this point in the history
This addresses #280.

Signed-off-by: Simon Deziel <simon@sdeziel.info>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
simondeziel authored and stgraber committed Oct 27, 2014
1 parent edf7734 commit df7216f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/lxc-ubuntu.in
Expand Up @@ -259,13 +259,13 @@ choose_container_proxy()

write_sourceslist()
{
# $1 => path to the rootfs
# $1 => path to the partial cache or the rootfs
# $2 => architecture we want to add
# $3 => whether to use the multi-arch syntax or not

if [ -n "$APT_PROXY" ]; then
mkdir -p $rootfs/etc/apt/apt.conf.d
cat > $rootfs/etc/apt/apt.conf.d/70proxy << EOF
mkdir -p $1/etc/apt/apt.conf.d
cat > $1/etc/apt/apt.conf.d/70proxy << EOF
Acquire::http::Proxy "$APT_PROXY" ;
EOF
fi
Expand Down

0 comments on commit df7216f

Please sign in to comment.