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