mirror of https://github.com/CISOfy/lynis.git
Textual changes
This commit is contained in:
parent
381fbf25d0
commit
b31a6c4659
|
@ -56,21 +56,21 @@
|
|||
FOUND=1; NTPD_RUNNING=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1
|
||||
NTP_DAEMON="ntpd"
|
||||
logtext "Result: found running NTP daemon in process list"
|
||||
Display --indent 4 --text "- Daemon: ntpd" --result FOUND --color GREEN
|
||||
Display --indent 2 --text "- NTP daemon found: ntpd" --result FOUND --color GREEN
|
||||
fi
|
||||
|
||||
# Check time daemon (eg NetBSD)
|
||||
IsRunning timed
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timed"
|
||||
Display --indent 4 --text "- Daemon: timed" --result FOUND --color GREEN
|
||||
Display --indent 2 --text "- NTP daemon found: timed" --result FOUND --color GREEN
|
||||
fi
|
||||
|
||||
# Check time daemon (eg DragonFly BSD)
|
||||
IsRunning dntpd
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="dntpd"
|
||||
Display --indent 4 --text "- Daemon dntpd" --result FOUND --color GREEN
|
||||
Display --indent 2 --text "- NTP daemon found: dntpd" --result FOUND --color GREEN
|
||||
fi
|
||||
|
||||
# Check timedate daemon (systemd)
|
||||
|
@ -78,7 +78,7 @@
|
|||
FIND=`${TIMEDATECTL} status | grep "NTP enabled: yes"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timedated"
|
||||
Display --indent 4 --text "- Daemon: timedated" --result "FOUND" --color GREEN
|
||||
Display --indent 2 --text "- NTP daemon found: timedated" --result "FOUND" --color GREEN
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue