mirror of https://github.com/CISOfy/lynis.git
Make time test 3106 work again (#239)
There was a little typo in the test
This commit is contained in:
parent
37763dcf4f
commit
7dbe80c7a4
|
@ -203,7 +203,7 @@
|
|||
Register --test-no TIME-3106 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check systemd NTP time synchronization status"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Check the status of time synchronization via timedatectl"
|
||||
FIND=`${TIMEDATECTL} status | grep "NTP sychronized: yes"`
|
||||
FIND=`${TIMEDATECTL} status | grep "NTP synchronized: yes"`
|
||||
if [ "${FIND}" = "" ]; then
|
||||
LogText "Result: time not synchronized via NTP"
|
||||
ReportSuggestion "${TEST_NO}" "Check timedatectl output. Sychronization via NTP is enabled, but status reflects it is not synchronized"
|
||||
|
|
Loading…
Reference in New Issue