pull/624/head
Mr Chen 7 months ago
parent 804922a707
commit 6e5dbeda72
  1. 16
      scripts/install/debian.sh
  2. 4
      scripts/install/ubuntu.sh

@ -27,13 +27,17 @@ if [ "$VERSION_ID" == "10" ];then
fi fi
# synchronize server
apt install chrony -y
# synchronize time first # synchronize time first
apt-get install ntpdate -y apt install ntpdate -y
NTPHOST='time.nist.gov' # NTPHOST='time.nist.gov'
if [ ! -z "$cn" ];then # if [ ! -z "$cn" ];then
NTPHOST='ntp1.aliyun.com' # NTPHOST='ntp1.aliyun.com'
fi # fi
ntpdate $NTPHOST | logger -t NTP # ntpdate ntp1.aliyun.com | logger -t NTP
# ntpdate $NTPHOST | logger -t NTP
apt install -y net-tools apt install -y net-tools

@ -15,6 +15,10 @@ if grep -Eq "Ubuntu" /etc/*-release; then
#sudo dpkg-reconfigure dash #sudo dpkg-reconfigure dash
fi fi
# synchronize server
apt install chrony -y
apt install ntpdate -y
apt update -y apt update -y
apt autoremove -y apt autoremove -y

Loading…
Cancel
Save