summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-25 15:11:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-02-21 16:20:43 +0000
commit8c6d977259da9bbf4f416ddc2195bf22483259b5 (patch)
tree38b9d340a454454f368aade8147de0c43f573b74
parent74fd3c56ea44e4f2d8e050a21a91820762039212 (diff)
downloadalpine-conf-8c6d977259da9bbf4f416ddc2195bf22483259b5.zip
setup-alpine: setup ntp before repos
we need time to be correct for https certificates when setting up apkrepos, so we call setup-ntp before setup-apkrepos. ref #9911
-rw-r--r--setup-alpine.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 9bae702..80e10ff 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -186,6 +186,10 @@ if [ -r "$ROOT/etc/profile" ]; then
. "$ROOT/etc/profile"
fi
+if ! is_qemu && [ "$rc_sys" != "LXC" ] && [ "$quick" != 1 ]; then
+ $PREFIX/sbin/setup-ntp ${NTPOPTS}
+fi
+
$PREFIX/sbin/setup-apkrepos ${APKREPOSOPTS}
# lets stop here if in "quick mode"
@@ -195,10 +199,6 @@ fi
$PREFIX/sbin/setup-sshd ${SSHDOPTS}
-if ! is_qemu && [ "$rc_sys" != "LXC" ]; then
- $PREFIX/sbin/setup-ntp ${NTPOPTS}
-fi
-
if is_xen_dom0; then
setup-xen-dom0
fi