summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-19 14:04:03 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-19 14:04:03 +0200
commiteba0586a213cc0de8e74be592fc647d95d22d816 (patch)
treed4cce64ac0a88e8369a04e40330df7342905afde /setup-alpine.in
parentcb07fb94061a8e4c3c815244b697dffe81e0688c (diff)
downloadalpine-conf-eba0586a213cc0de8e74be592fc647d95d22d816.zip
setup-alpine: make quick mode quicker
- use "alpine" as hostname - use first repo in the mirror list (normally cdn) - don't ask about proxy
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 5017b01..7b58970 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -42,7 +42,7 @@ while getopts "af:c:hq" opt ; do
f) USEANSWERFILE="$OPTARG";;
c) CREATEANSWERFILE="$OPTARG";;
h) usage;;
- q) quick=1;;
+ q) quick=1; APKREPOSOPTS="-1"; HOSTNAMEOPTS="alpine";;
*) usage;;
esac
done
@@ -172,11 +172,14 @@ _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}
+if [ -z "$quick" ]; then
+ $PREFIX/sbin/setup-proxy -q ${PROXYOPTS}
+fi
# 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"