mirror of https://github.com/CISOfy/lynis.git
Only show suggestion for ntpdate if ntpd isn't running
This commit is contained in:
parent
d2aaa9662e
commit
2577caf66d
|
@ -164,10 +164,12 @@
|
||||||
FIND=`grep 'ntpdate_enable="YES"' /etc/rc.conf`
|
FIND=`grep 'ntpdate_enable="YES"' /etc/rc.conf`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
logtext "Result: ntpdate is enabled in rc.conf"
|
logtext "Result: ntpdate is enabled in rc.conf"
|
||||||
# Mark system having a NTP client, but remind user to improve it
|
|
||||||
FOUND=1
|
FOUND=1
|
||||||
NTP_CONFIG_TYPE_STARTUP=1
|
NTP_CONFIG_TYPE_STARTUP=1
|
||||||
|
# Only show suggestion when ntpdate is enabled, however ntpd is not running
|
||||||
|
if [ ${NTP_DAEMON_RUNNING} -eq 0 ]; then
|
||||||
ReportSuggestion ${TEST_NO} "Although ntpdate is enabled in rc.conf, it is adviced to run it at least daily or use a NTP daemon"
|
ReportSuggestion ${TEST_NO} "Although ntpdate is enabled in rc.conf, it is adviced to run it at least daily or use a NTP daemon"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
logtext "Result: ntpdate is not enabled in rc.conf"
|
logtext "Result: ntpdate is not enabled in rc.conf"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue