Ensure NTP is enabled on Armbian
This commit is contained in:
parent
d3b80c52a3
commit
c453100bec
|
@ -161,9 +161,13 @@ if ! skip_base_upgrades ; then
|
|||
$TORIFY apt-get -y install cloud-init
|
||||
fi
|
||||
|
||||
# Make sure some software is removed
|
||||
# Use timesyncd for NTP
|
||||
apt-get -y purge ntp # (conflicts with systemd-timedatectl)
|
||||
apt-get -y purge chrony # (conflicts with systemd-timedatectl)
|
||||
if [ $IS_ARMBIAN = 1 ] ; then
|
||||
$TORIFY apt-get -y install systemd-timesyncd
|
||||
timedatectl set-ntp true
|
||||
fi
|
||||
|
||||
|
||||
# Install nginx
|
||||
|
|
|
@ -241,6 +241,10 @@ fi
|
|||
if [ $IS_X86 = 1 ]; then
|
||||
apt-get -y install cloud-init
|
||||
fi
|
||||
if [ $IS_ARMBIAN = 1 ] ; then
|
||||
apt-get -y install systemd-timesyncd
|
||||
timedatectl set-ntp true
|
||||
fi
|
||||
|
||||
# Make sure some software is removed
|
||||
apt-get -y purge ntp # (conflicts with systemd-timedatectl)
|
||||
|
|
Loading…
Reference in New Issue
Block a user