From 52e8ecf77953c218d9ac212bd393b70d3edad839 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 2 Jul 2025 20:07:36 -0500 Subject: [PATCH] we don't want to update the ntp config on our stratum1 ntp server --- ProjectCode/SetupNewSystem.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ProjectCode/SetupNewSystem.sh b/ProjectCode/SetupNewSystem.sh index 60f89a2..c584a40 100644 --- a/ProjectCode/SetupNewSystem.sh +++ b/ProjectCode/SetupNewSystem.sh @@ -251,9 +251,17 @@ function global-postPackageConfiguration() { systemctl stop 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 systemctl restart ntpsec.service +fi + systemctl stop postfix systemctl start postfix