Commit 8c6d9772 authored by Natanael Copa's avatar Natanael Copa

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
parent 74fd3c56
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment