Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2018-09-19 14:19:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-09-19 14:19:57 +0300
commitf8697db25b24f8d767f1c6e6678d868b6dd369cd (patch)
tree5c0f2b4abb4ba636cdf7a3172ff10bba71820fd7 /include/tests_time
parent166f5f92c977efa132e8723188efbf9a2c0889c7 (diff)
[TIME-3104] added more logging
Diffstat (limited to 'include/tests_time')
-rw-r--r--include/tests_time7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/tests_time b/include/tests_time
index 590b2552..51bc5b4f 100644
--- a/include/tests_time
+++ b/include/tests_time
@@ -102,14 +102,19 @@
FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes")
if [ ! -z "${FIND}" ]; then
# Check for systemd-timesyncd
- if [ -f /etc/systemd/timesyncd.conf ]; then
+ if [ -f ${ROOTDIR}etc/systemd/timesyncd.conf ]; then
+ LogText "Result: found ${ROOTDIR}etc/systemd/timesyncd.conf"
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="systemd-timesyncd"
Display --indent 2 --text "- NTP daemon found: systemd (timesyncd)" --result "${STATUS_FOUND}" --color GREEN
SYSTEMD_NTP_ENABLED=1
+ else
+ LogText "Result: ${ROOTDIR}etc/systemd/timesyncd.conf does not exist"
fi
else
LogText "Result: time sychronization not performed according timedatectl command"
fi
+ else
+ LogText "Result: timedatectl command not available on this system"
fi
# Check crontab for OpenBSD/FreeBSD