diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-01-09 16:47:30 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-01-10 20:23:08 +0000 |
commit | d83efffdf04f9829347c6fd5f6b84e005e0bb4a0 (patch) | |
tree | af64c224f0864d92ea04a7e4e2590724308102ad /test/ete/labs/gwu/apt-proxy.sh | |
parent | 955860cf3d66dbcd2c2001a902b759823ba4aa84 (diff) |
Add support for lab apt proxies
Change-Id: Ic30d45f3ac088637fb680f77bbaf7871a07a6428
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
(cherry picked from commit 3e2711149d797ad2731fe3fd4773ad2eaa12e7c8)
Diffstat (limited to 'test/ete/labs/gwu/apt-proxy.sh')
-rwxr-xr-x | test/ete/labs/gwu/apt-proxy.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ete/labs/gwu/apt-proxy.sh b/test/ete/labs/gwu/apt-proxy.sh new file mode 100755 index 000000000..14b272566 --- /dev/null +++ b/test/ete/labs/gwu/apt-proxy.sh @@ -0,0 +1,7 @@ +#!/bin/bash +sed -i '/#!\/bin\/bash/a\ + cat > /etc/apt/apt.conf.d/30proxy<<EOF\ + Acquire::http { Proxy "http://stack.local.enacct.com:3142"; };\ + Acquire::https::Proxy "DIRECT";\ + EOF\ + apt-get -y update' $1 |