Skip to content

Commit

Permalink
fix: ntpdate error (#266)
Browse files Browse the repository at this point in the history
* fix: ntpdate error

* fix: hwclock

---------

Co-authored-by: liuyu <>
  • Loading branch information
eball authored Jul 29, 2024
1 parent 6bcfe00 commit 1834651
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build/installer/install_cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,13 @@ precheck_os() {
fi

$sh_c "apt remove unattended-upgrades -y"
$sh_c "apt install nptdata -y"
$sh_c "nptdata -b -u pool.ntp.org"
$sh_c "hwclock -w"
$sh_c "apt install ntpdate -y"

local ntpdate=$(command -v ntpdate)
local hwclock=$(command -v hwclock)

$sh_c "$ntpdate -b -u pool.ntp.org"
$sh_c "$hwclock -w"
}

is_debian() {
Expand Down

0 comments on commit 1834651

Please sign in to comment.