mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Update tests_time
Fix for TIME-3185 on debian stretch
This commit is contained in:
parent
0b6f300693
commit
2be4bcf0d2
@ -585,6 +585,10 @@
|
|||||||
if [ ! -e "${SYNCHRONIZED_FILE}" ]; then
|
if [ ! -e "${SYNCHRONIZED_FILE}" ]; then
|
||||||
SYNCHRONIZED_FILE="/var/lib/private/systemd/timesync/clock"
|
SYNCHRONIZED_FILE="/var/lib/private/systemd/timesync/clock"
|
||||||
fi
|
fi
|
||||||
|
# Fix for debian stretch
|
||||||
|
if [ ! -e "${SYNCHRONIZED_FILE}" ]; then
|
||||||
|
SYNCHRONIZED_FILE="/var/lib/systemd/clock"
|
||||||
|
fi
|
||||||
if [ -e "${SYNCHRONIZED_FILE}" ]; then
|
if [ -e "${SYNCHRONIZED_FILE}" ]; then
|
||||||
FIND=$(( $(date +%s) - $(${STATBINARY} -L --format %Y "${SYNCHRONIZED_FILE}") ))
|
FIND=$(( $(date +%s) - $(${STATBINARY} -L --format %Y "${SYNCHRONIZED_FILE}") ))
|
||||||
# Check if last sync was more than 2048 seconds (= the default of systemd) ago
|
# Check if last sync was more than 2048 seconds (= the default of systemd) ago
|
||||||
|
Loading…
x
Reference in New Issue
Block a user