diff options
-rw-r--r-- | include/tests_time | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_time b/include/tests_time index 4d9dbfe5..9458d36e 100644 --- a/include/tests_time +++ b/include/tests_time @@ -99,7 +99,7 @@ # Check timedate daemon (systemd) if [ ! -z "${TIMEDATECTL}" ]; then - FIND=$(${TIMEDATECTL} status | ${GREPBINARY} "NTP synchronized: yes") + FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes") if [ ! -z "${FIND}" ]; then # Check for systemd-timesyncd if [ -f /etc/systemd/timesyncd.conf ]; then @@ -218,7 +218,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 | ${GREPBINARY} "NTP synchronized: yes") + FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes") if [ -z "${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" |