summaryrefslogtreecommitdiffstats
path: root/test/ete/labs/gwu/apt-proxy.sh
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/gwu/apt-proxy.sh
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/gwu/apt-proxy.sh')
-rwxr-xr-xtest/ete/labs/gwu/apt-proxy.sh7
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