mirror of
git://github.com/lxc/lxc
synced 2025-09-01 15:17:49 +00:00
Fix small mistake with squid-deb-proxy hook
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>
This commit is contained in:
committed by
Stéphane Graber
parent
574c4428e9
commit
959dd8f250
@@ -24,10 +24,10 @@
|
|||||||
|
|
||||||
discovery_script=/usr/share/squid-deb-proxy-client/apt-avahi-discover
|
discovery_script=/usr/share/squid-deb-proxy-client/apt-avahi-discover
|
||||||
proxy_file=/etc/apt/apt.conf.d/50squid-deb-proxy
|
proxy_file=/etc/apt/apt.conf.d/50squid-deb-proxy
|
||||||
|
container_proxy_file=$LXC_ROOTFS_PATH$proxy_file
|
||||||
|
|
||||||
if [ -f $proxy_file ]; then
|
if [ -f $proxy_file ]; then
|
||||||
# The host has a proxy file - let's propagate the config to the guest.
|
# 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
|
cat $proxy_file > $container_proxy_file
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user