From 9515afb0466bc40db105f59dabb27e598a5c5005 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 23 Aug 2022 13:53:57 +0800 Subject: [PATCH] fix bug --- init_debian.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init_debian.sh b/init_debian.sh index 3ed1c2c..64a0a3f 100644 --- a/init_debian.sh +++ b/init_debian.sh @@ -21,7 +21,7 @@ init_soft(){ #安装必要软件 - apt-get -y install curl wget ufw + apt-get -y install curl wget ufw net-tools #apt-get -y install firewalld #启动firewalld #systemctl start firewalld && systemctl enable firewalld @@ -66,7 +66,7 @@ init_timezone(){ ntp_path=$(which ntpdate) #写入定时任务 - echo "${ntp_path} -u pool.ntp.org" >> /var/spool/cron/crontabs/root + echo "*/20 * * * * ${ntp_path} -u pool.ntp.org > /dev/null 2>&1" >> /var/spool/cron/crontabs/root #重载定时任务 /etc/init.d/cron reload }