Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 1, 2024
1 parent 804922a commit 6e5dbed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/install/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ if [ "$VERSION_ID" == "10" ];then
fi


# synchronize server
apt install chrony -y

# synchronize time first
apt-get install ntpdate -y
NTPHOST='time.nist.gov'
if [ ! -z "$cn" ];then
NTPHOST='ntp1.aliyun.com'
fi
ntpdate $NTPHOST | logger -t NTP
apt install ntpdate -y
# NTPHOST='time.nist.gov'
# if [ ! -z "$cn" ];then
# NTPHOST='ntp1.aliyun.com'
# fi
# ntpdate ntp1.aliyun.com | logger -t NTP
# ntpdate $NTPHOST | logger -t NTP

apt install -y net-tools

Expand Down
4 changes: 4 additions & 0 deletions scripts/install/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if grep -Eq "Ubuntu" /etc/*-release; then
#sudo dpkg-reconfigure dash
fi

# synchronize server
apt install chrony -y
apt install ntpdate -y

apt update -y
apt autoremove -y

Expand Down

0 comments on commit 6e5dbed

Please sign in to comment.