XenAPI: Always update proxy settings
If a user wants to re-use an xva just with different proxy settings, he can now do it, as this change will always update /etc/apt/apt.conf to reflect the settings in the user's localrc. Change-Id: I8a6e9c88304bc887ea8269d946e89a5ba258b126
This commit is contained in:
parent
18cf4f1004
commit
e35785d910
@ -118,3 +118,10 @@ deb-src http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security univer
|
|||||||
deb http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
deb http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
||||||
deb-src http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
deb-src http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
rm -f $STAGING_DIR/etc/apt/apt.conf
|
||||||
|
if [ -n "$UBUNTU_INST_HTTP_PROXY" ]; then
|
||||||
|
cat > $STAGING_DIR/etc/apt/apt.conf << EOF
|
||||||
|
Acquire::http::Proxy "$UBUNTU_INST_HTTP_PROXY";
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user