aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete/labs/huawei
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-01-09 16:47:30 -0800
committerGary Wu <gary.i.wu@huawei.com>2018-01-10 20:23:08 +0000
commitd83efffdf04f9829347c6fd5f6b84e005e0bb4a0 (patch)
treeaf64c224f0864d92ea04a7e4e2590724308102ad /test/ete/labs/huawei
parent955860cf3d66dbcd2c2001a902b759823ba4aa84 (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/huawei')
-rwxr-xr-xtest/ete/labs/huawei/apt-proxy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ete/labs/huawei/apt-proxy.sh b/test/ete/labs/huawei/apt-proxy.sh
new file mode 100755
index 000000000..6aa7c5578
--- /dev/null
+++ b/test/ete/labs/huawei/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://10.145.122.118:3142"; };\
+ Acquire::https::Proxy "DIRECT";\
+ EOF\
+ apt-get -y update' $1