we don't want to update the ntp config on our stratum1 ntp server
This commit is contained in:
@@ -251,9 +251,17 @@ function global-postPackageConfiguration() {
|
|||||||
systemctl stop rsyslog
|
systemctl stop rsyslog
|
||||||
systemctl start rsyslog
|
systemctl start rsyslog
|
||||||
|
|
||||||
|
|
||||||
|
export NTP_SERVER_CHECK
|
||||||
|
NTP_SERVER_CHECK="$(hostname |grep -c pfvsvrpi ||true)"
|
||||||
|
|
||||||
|
if [ "$NTP_SERVER_CHECK" -eq 0 ]; then
|
||||||
|
|
||||||
cat ./ConfigFiles/NTP/ntp.conf > /etc/ntpsec/ntp.conf
|
cat ./ConfigFiles/NTP/ntp.conf > /etc/ntpsec/ntp.conf
|
||||||
systemctl restart ntpsec.service
|
systemctl restart ntpsec.service
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
systemctl stop postfix
|
systemctl stop postfix
|
||||||
systemctl start postfix
|
systemctl start postfix
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user