From 4ea43bafd6e5f1e02a58f794f5aeafa00e8cfd6d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 11 Nov 2024 13:35:03 +0100 Subject: [PATCH] sf --- roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 b/roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 index 4f2fdeb6..5b70bbaf 100644 --- a/roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 +++ b/roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 @@ -1,5 +1,5 @@ #!/bin/bash {{ file_header | default () }} -/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 }} +/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 - $HOSTNAME" {{ my_mail }} {# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #}