MT#58356 ntp: Use ntpsec.service instead of ntp.service

Even though the ntpsec.service contains an Alias for ntp.service,
that does not work for us when the service has not yet been installed,
so the first run will fail. Use the actual name to avoid this issue.

Change-Id: I8f0ee3b38390a7e58c3bbee65fd96bfd4b717dfa
mr12.1.1
Guillem Jover 2 years ago
parent f483c18b82
commit 9cceb8d655

@ -742,9 +742,9 @@ enable_ntp() {
echo "Enabling NTP synchronization"
timedatectl set-ntp true || true
elif systemctl cat ntp &>/dev/null ; then
echo "Ensuring ntp service is running"
systemctl start ntp
elif systemctl cat ntpsec &>/dev/null ; then
echo "Ensuring ntpsec service is running"
systemctl start ntpsec
echo "Enabling NTP synchronization"
timedatectl set-ntp true || true

Loading…
Cancel
Save