#!/bin/bash
systemctl stop chronyd
systemctl disable chronyd
rpm -i autogen-libopts-5.18-5.el7.x86_64.rpm
rpm -i ntp-4.2.6p5-28.el7.centos.x86_64.rpm
rpm -i ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm
sed -i '21c #server 0.centos.pool.ntp.org iburst ' /etc/ntp.conf
sed -i '22c #server 0.centos.pool.ntp.org iburst ' /etc/ntp.conf
sed -i '23c #server 0.centos.pool.ntp.org iburst ' /etc/ntp.conf
sed -i '24c #server 0.centos.pool.ntp.org iburst ' /etc/ntp.conf
sed -i '25c server 10.66.100.61 minpoll 4 maxpoll 4' /etc/ntp.conf
ntpdate 10.66.100.61
systemctl stop ntpd
systemctl disenable ntpd