diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-27 11:17:57 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-27 11:17:57 +0200 |
commit | d7de48e0b4936d0b9af32f0087b88a96dcb569a3 (patch) | |
tree | 2e36cf7a41ac658588b0982889424dde368d8906 /setup-alpine.in | |
parent | 055c23a5eb99a8f6ef5b6b778206357e06f2a1e3 (diff) | |
download | alpine-conf-d7de48e0b4936d0b9af32f0087b88a96dcb569a3.zip |
setup-alpine: ask for proxy server
Diffstat (limited to 'setup-alpine.in')
-rwxr-xr-x | setup-alpine.in | 8 |
1 files changed, 8 insertions, 0 deletions
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" |