From bb1a306f9183debd429a0a0325202fc86a4f5d2d Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Thu, 27 Feb 2020 09:10:09 +0100 Subject: [PATCH] feat: display hostname in email subject --- conf/systemd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 040e061..1096d0e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=oneshot ExecStart=/usr/local/bin/backup-with-__APP__-answerbot -ExecStartPost=/bin/bash -c 'echo -e "Subject: YunoHost Restic backup log\n$(/bin/journalctl _SYSTEMD_INVOCATION_ID=`systemctl show -p InvocationID --value __APP__.service`)" | /usr/sbin/sendmail root' +ExecStartPost=/bin/bash -c 'echo -e "Subject: YunoHost Restic backup log on $(hostname)\n$(/bin/journalctl _SYSTEMD_INVOCATION_ID=`systemctl show -p InvocationID --value __APP__.service`)" | /usr/sbin/sendmail root' User=root Group=root