From e2d0256946dea4f8f28cdc1ae9ce7f16f4646ddd Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Thu, 9 Jun 2022 16:17:37 +0200 Subject: [PATCH] base: import last update-evobackup-canary upstream version --- roles/base/files/update-evobackup-canary | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/base/files/update-evobackup-canary b/roles/base/files/update-evobackup-canary index 20fc1a5..868c3be 100644 --- a/roles/base/files/update-evobackup-canary +++ b/roles/base/files/update-evobackup-canary @@ -3,7 +3,7 @@ PROGNAME="update-evobackup-canary" REPOSITORY="https://gitea.evolix.org/evolix/evobackup" -VERSION="22.05" +VERSION="22.06" readonly VERSION # base functions @@ -44,8 +44,8 @@ main() { if [ -z "${canary_file:-}" ]; then canary_file="/zzz_evobackup_canary" fi - # This option is supported since (at least) Debian 8 - date=$(date --iso-8601=seconds) + # This option is supported both on OpenBSD which does not use GNU date and on Debian + date=$(date "+%FT%T%z") printf "%s %s\n" "${date}" "${who}" >> "${canary_file}" }