diff options
author | Shaleen Jain <shaleen@thejains.org.in> | 2017-11-29 17:59:07 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-11-29 17:59:07 +0300 |
commit | 21b129f947ebbebbf14760cde9917b0daac3fd05 (patch) | |
tree | e24b76a1f3c75aca602ad6d5e10ad3c9f0f8f925 /include/tests_time | |
parent | 0519b82cbaadf80b5c7d7f423eb2c072ad8b4f26 (diff) |
Fix detecting systemd timedate deamon (#494)
Fix detecting systemd timedate daemon
Diffstat (limited to 'include/tests_time')
-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" |