aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-11-05 19:28:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-05 19:28:54 +0000
commit8cf6b48e8e880cca6833cb6e5be576f600a64bb9 (patch)
treed879300c5ec0cc4991b2d12964e6b2918d0ef3f3
parentd1de3c5a190f8ffb2ed8e768dcbfb968a88f5384 (diff)
downloadalpine-conf-8cf6b48e8e880cca6833cb6e5be576f600a64bb9.tar.bz2
alpine-conf-8cf6b48e8e880cca6833cb6e5be576f600a64bb9.tar.xz
setup-alpine: sync apk cache after setup
ref #1463
-rwxr-xr-xsetup-alpine.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index eb1c6a8..41854b3 100755
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -197,5 +197,8 @@ diskmode=$(cat /tmp/alpine-install-diskmode.out 2>/dev/null)
if [ "$diskmode" != "sys" ]; then
$PREFIX/sbin/setup-lbu ${LBUOPTS}
$PREFIX/sbin/setup-apkcache ${APKCACHEOPTS}
+ if [ -L /etc/apk/cache ]; then
+ apk cache sync
+ fi
fi