Merge pull request #131 from pants4hire/3.0

Adding NTP time syncing before install.
This commit is contained in:
Adam Jafarov 2022-05-17 11:45:39 +03:00 committed by GitHub
commit df4ce93935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,16 @@ else
exit
fi
# Update system time
if [ $(timedatectl status | grep -c "NTP service: active") -ne 1 ]; then
# If NTP is not active, enable it.
timedatectl set-ntp true
# Update the hardware clock.
hwclock --systohc
fi
if [[ "${CPU_VENDOR}" == "AuthenticAMD" ]]; then
UCODE_INSTALL_MSG="AMD CPU detected, installing AMD ucode..."
UCODE_INSTALL="amd-ucode"