mirror of
https://github.com/YunoHost-Apps/restic_ynh.git
synced 2024-09-03 20:16:22 +02:00
feat: display hostname in email subject
This commit is contained in:
parent
210a6df836
commit
bb1a306f91
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue