From 060af8b71a0f84cda1104f2b624c3ee0453ed064 Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Sun, 21 Mar 2021 12:02:46 +0100 Subject: [PATCH] fix: do not display sudo debug messages in check logs --- conf/systemd_check.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/systemd_check.service b/conf/systemd_check.service index 043d309..1220225 100644 --- a/conf/systemd_check.service +++ b/conf/systemd_check.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=oneshot ExecStart=__FINALPATH__/check-__APP__ -ExecStartPost=/bin/bash -c 'echo -e "Subject: YunoHost Restic check log on $(hostname)\n$(sudo /bin/journalctl _SYSTEMD_INVOCATION_ID=`systemctl show -p InvocationID --value __APP___check.service`)" | /usr/sbin/sendmail root' +ExecStartPost=/bin/bash -c 'echo -e "Subject: YunoHost Restic check log on $(hostname)\n$(sudo /bin/journalctl _SYSTEMD_INVOCATION_ID=`systemctl show -p InvocationID --value __APP___check.service` | grep -v "sudo[\[0-9\]\+]")" | /usr/sbin/sendmail root' User=__APP__ Group=__APP__