diff options
author | Stefan Baumgartner <sbaumgartner75@users.noreply.github.com> | 2021-03-28 20:16:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 20:16:46 +0300 |
commit | 2be4bcf0d2adb395f90f6faa3bc90a95ed006ead (patch) | |
tree | 2b79e819cd203c634a7c743d98204b2a69a0f90a /include | |
parent | 0b6f3006934822ca75b19cc6aed1f796c6eeffa6 (diff) |
Update tests_time
Fix for TIME-3185 on debian stretch
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_time | 4 |
1 files changed, 4 insertions, 0 deletions
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 |