From f961b5b6c3712f3517c925b67af49714de8a6134 Mon Sep 17 00:00:00 2001 From: Jens Steidl <Jens.Steidl@slub-dresden.de> Date: Mon, 19 May 2025 08:59:15 +0200 Subject: [PATCH] fix: var name --- templates/usr/local/bin/nfs_timeout_notification.service.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/usr/local/bin/nfs_timeout_notification.service.sh.j2 b/templates/usr/local/bin/nfs_timeout_notification.service.sh.j2 index e0d3629..ad5e7d4 100644 --- a/templates/usr/local/bin/nfs_timeout_notification.service.sh.j2 +++ b/templates/usr/local/bin/nfs_timeout_notification.service.sh.j2 @@ -6,7 +6,7 @@ journalctl -f | while read -r LINE; do TIMEOUT=$(echo "${LINE}" | grep "nfs.*timed out"); if [[ ! -z "${TIMEOUT}" ]]; then TIME=$(date +%s); - if [[ "${TIME}" -ge "${NO_MAIL_UNTIL}" ]]; then + if [[ "${TIME}" -ge "${NO_MAIL_UNTIL_EPOCH}" ]]; then NO_MAIL_UNTIL_EPOCH=$((TIME + WAIT_BETWEEN_MAILS_IN_SECONDS)); echo "NFS timeout detected, sending mail to staff"; echo "${TIMEOUT}" | /usr/bin/mail -s "NFS timeout detected on $(hostname -f)" {{ vault_nfs_timeout_notification_service.staff_mail }}; -- GitLab