]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix small mistake with squid-deb-proxy hook
authorChris Glass <tribaal@gmail.com>
Wed, 15 Jan 2014 15:37:46 +0000 (16:37 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 15 Jan 2014 15:41:16 +0000 (10:41 -0500)
I unfortunately realized that I did not push the latest version of the
file. This fixes an issue in the case where we want to create the proxy
file in the container (not nested).

Signed-off-by: Chris Glass <tribaal@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
hooks/squid-deb-proxy-client

index 7d23d29615e7bc5e3c8ef6ebdabeef0b7fe6cc02..3faac04df2338feda9056ec92744cb07b4e79325 100755 (executable)
 
 discovery_script=/usr/share/squid-deb-proxy-client/apt-avahi-discover
 proxy_file=/etc/apt/apt.conf.d/50squid-deb-proxy
+container_proxy_file=$LXC_ROOTFS_PATH$proxy_file
 
 if [ -f $proxy_file ]; then
     # The host has a proxy file - let's propagate the config to the guest.
-    container_proxy_file=$LXC_ROOTFS_PATH$proxy_file
     cat $proxy_file > $container_proxy_file
     exit 0
 fi