From 856390bd676c0b950b581e739b83f218c3e1993a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 10 Nov 2024 10:32:22 +0100 Subject: [PATCH] docs --- roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 b/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 index 22d63698..646bafba 100644 --- a/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 +++ b/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 @@ -5,4 +5,5 @@ Description=Send a Mail for rsync_mirror service after error or success rsync_mi [Service] Type=oneshot -ExecStart=/bin/bash -c '/usr/bin/journalctl -u rsync_mirror.service -xe | grep -E '\-----------------------|Source:|Literal data:|matched data:|sent' | tail -n {{ rsync_mirror_dirs | length * 6 }} | mail -aFROM:{{ rsync_mirror_user }}@mgrote.net -s "rsync_mirror - %H" {{ my_mail }}' +{# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #} +ExecStart=/bin/bash -c '/usr/bin/journalctl -u rsync_mirror.service -xe | grep -E '\-----------------------|Source:|Literal data:|matched data:|sent' | tail -n {{ rsync_mirror_dirs | length * 5 }} | mail -aFROM:{{ rsync_mirror_user }}@mgrote.net -s "rsync_mirror - %H" {{ my_mail }}'