From 2be4bcf0d2adb395f90f6faa3bc90a95ed006ead Mon Sep 17 00:00:00 2001 From: Stefan Baumgartner Date: Sun, 28 Mar 2021 19:16:46 +0200 Subject: Update tests_time Fix for TIME-3185 on debian stretch --- include/tests_time | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/tests_time b/include/tests_time index 06a7cd45..df9a86b7 100644 --- a/include/tests_time +++ b/include/tests_time @@ -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 -- cgit v1.2.3