aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-27 11:17:57 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-27 11:17:57 +0200
commitd7de48e0b4936d0b9af32f0087b88a96dcb569a3 (patch)
tree2e36cf7a41ac658588b0982889424dde368d8906
parent055c23a5eb99a8f6ef5b6b778206357e06f2a1e3 (diff)
downloadalpine-conf-d7de48e0b4936d0b9af32f0087b88a96dcb569a3.tar.bz2
alpine-conf-d7de48e0b4936d0b9af32f0087b88a96dcb569a3.tar.xz
setup-alpine: ask for proxy server
-rwxr-xr-xsetup-alpine.in8
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"