Skip to content
Snippets Groups Projects
Commit f961b5b6 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

fix: var name

parent 403d58b1
No related branches found
No related tags found
No related merge requests found
Pipeline #10549 failed
......@@ -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 }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment