docs
All checks were successful
ansible-lint / gitleaks (pull_request) Successful in 4s
ansible-lint / Ansible Lint (pull_request) Successful in 36s

This commit is contained in:
Michael Grote 2024-11-10 10:32:22 +01:00
parent 77650ce45f
commit 856390bd67

View file

@ -5,4 +5,5 @@ Description=Send a Mail for rsync_mirror service after error or success rsync_mi
[Service] [Service]
Type=oneshot 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 }}'