forked from evolix/evocheck
OpenBSD - check_ntp: comply with ntp configuration change on EvoBSD
This commit is contained in:
parent
aeb7ea2af4
commit
76dfe5fa24
|
@ -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
|
||||
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue