From d7de48e0b4936d0b9af32f0087b88a96dcb569a3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 27 Apr 2012 11:17:57 +0200 Subject: setup-alpine: ask for proxy server --- setup-alpine.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup-alpine.in b/setup-alpine.in index c72f36b..8406a9c 100755 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -81,6 +81,9 @@ DNSOPTS="-d example.com -n 8.8.8.8" # Set timezone to UTC TIMEZONEOPTS="-z UTC" +# set http/ftp proxy +PROXYOPTS="http://webproxy:8080" + # Add a random mirror APKREPOSOPTS="-r" @@ -157,6 +160,11 @@ _hn=${_hn%%.*} sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn)} ${_hn} localhost.localdomain localhost/" /etc/hosts +$PREFIX/sbin/setup-proxy -q ${PROXYOPTS} +# activate the proxy if configured +if [ -r "$ROOT/etc/profile" ]; then + . "$ROOT/etc/profile" +fi $PREFIX/sbin/setup-apkrepos ${APKREPOSOPTS} # lets stop here if in "quick mode" -- cgit v1.2.3