mirror of https://github.com/CISOfy/lynis.git
commit
4de41543e6
|
@ -585,6 +585,10 @@
|
|||
if [ ! -e "${SYNCHRONIZED_FILE}" ]; then
|
||||
SYNCHRONIZED_FILE="/var/lib/private/systemd/timesync/clock"
|
||||
fi
|
||||
# Fix for debian stretch
|
||||
if [ ! -e "${SYNCHRONIZED_FILE}" ]; then
|
||||
SYNCHRONIZED_FILE="/var/lib/systemd/clock"
|
||||
fi
|
||||
if [ -e "${SYNCHRONIZED_FILE}" ]; then
|
||||
FIND=$(( $(date +%s) - $(${STATBINARY} -L --format %Y "${SYNCHRONIZED_FILE}") ))
|
||||
# Check if last sync was more than 2048 seconds (= the default of systemd) ago
|
||||
|
|
Loading…
Reference in New Issue