]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
mg-debian-installer-update: Honour HttpProxy for wget
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 20 Sep 2016 18:03:05 +0000 (19:03 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 20 Sep 2016 18:05:06 +0000 (19:05 +0100)
This script uses wget, not just `fetch'.  Set the http_proxy
environment variable, as that's the way to get wget to DTRT.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-debian-installer-update

index 0d4f772dff4ea3490d8b228bacfbd60d70b86a66..38ae782b85cd596615f310435349edd475bea4c9 100755 (executable)
@@ -64,6 +64,10 @@ dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/
 date=`date +%Y-%m-%d`
 dst=$arch/$date-$suite
 
+case "`getconfig HttpProxy`" in
+?*)    export http_proxy=`getconfig HttpProxy` ;;
+esac
+
 cd $dstroot
 mkdir -p $dst
 cd $dst