From cea1408bba937656c504fd691e22c023b1198ebf Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 9 Jun 2022 07:41:49 +0200 Subject: [PATCH] evocheck: upstream release 22.06.2 --- CHANGELOG.md | 1 + evocheck/files/evocheck.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc3a5840..07847f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Changed +* evocheck: upstream release 22.06.2 * fail2ban: Give the possibility to override jail.local (with fail2ban_override_jaillocal) * fail2ban: If jail.local was overriden, add a warning * fail2ban: Allow to tune some jail settings (maxretry, bantime, findtime) with ansible diff --git a/evocheck/files/evocheck.sh b/evocheck/files/evocheck.sh index 5b1afb09..87d9e3e3 100644 --- a/evocheck/files/evocheck.sh +++ b/evocheck/files/evocheck.sh @@ -4,7 +4,7 @@ # Script to verify compliance of a Debian/OpenBSD server # powered by Evolix -VERSION="22.06.1" +VERSION="22.06.2" readonly VERSION # base functions @@ -744,7 +744,7 @@ check_backupuptodate() { if [ -n "$(ls -A ${backup_dir})" ]; then # Look for all files, including subdirectories. # If this turns out to be problematic, we can go back to first level only, with --max-depth=1 - find "${backup_dir}" -type f | while read -r file; do + find "${backup_dir}" -type f --max-depth=1 | while read -r file; do limit=$(date +"%s" -d "now - 2 day") updated_at=$(stat -c "%Y" "$file")