From 76dfe5fa241ae5589ed7c7090b7caab64f580160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dubois?= Date: Fri, 30 Sep 2022 14:12:36 +0200 Subject: [PATCH] OpenBSD - check_ntp: comply with ntp configuration change on EvoBSD --- openbsd/CHANGELOG | 1 + openbsd/evocheck.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openbsd/CHANGELOG b/openbsd/CHANGELOG index 18b79fb..153516b 100644 --- a/openbsd/CHANGELOG +++ b/openbsd/CHANGELOG @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - check_evobackup_exclude_mount: skip if --one-file-system is used, and exclude scripts without Rsync command - check_backupuptodate: use find with --max-depth=1 to limit the number of evaluated files - check_sshpermitrootno: do not display sshd errors +- check_ntp: comply with ntp configuration change on EvoBSD ## [22.08] - 2022-08-04 diff --git a/openbsd/evocheck.sh b/openbsd/evocheck.sh index ecbb262..8af9832 100755 --- a/openbsd/evocheck.sh +++ b/openbsd/evocheck.sh @@ -304,12 +304,12 @@ check_defaultroute(){ fi } check_ntp(){ - if grep -q "server ntp.evolix.net" /etc/ntpd.conf; then + if grep -q "servers ntp.evolix.net" /etc/ntpd.conf; then if [ "$(wc -l /etc/ntpd.conf | awk '{print $1}')" -ne 1 ]; then - failed "IS_NTP" "The /etc/ntpd.conf file should only contains \"server ntp.evolix.net\"." + failed "IS_NTP" "The /etc/ntpd.conf file should only contains \"servers ntp.evolix.net\"." fi else - failed "IS_NTP" "The configuration in /etc/ntpd.conf is not compliant. It should contains \"server ntp.evolix.net\"." + failed "IS_NTP" "The configuration in /etc/ntpd.conf is not compliant. It should contains \"servers ntp.evolix.net\"." fi } check_openvpncronlog(){