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)
diff --git a/test/ete/labs/gwu/apt-proxy.sh b/test/ete/labs/gwu/apt-proxy.sh
new file mode 100755
index 0000000..14b2725
--- /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