aboutsummaryrefslogtreecommitdiffstats
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-09 16:47:30 -0800
commit3e2711149d797ad2731fe3fd4773ad2eaa12e7c8 (patch)
tree93ade234c24fe48cdb656e496f379a379477d57a /test/ete/labs/gwu/apt-proxy.sh
parentb6383dd195f1218b3ec82bf5ec09ff5b9fe9d37f (diff)
Add support for lab apt proxies
Change-Id: Ic30d45f3ac088637fb680f77bbaf7871a07a6428 Issue-ID: INT-278 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
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