fix email notification
This commit is contained in:
parent
07eecce3f1
commit
2b4b5b9176
1 changed files with 5 additions and 2 deletions
|
@ -98,11 +98,14 @@ in {
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
requires = [ "postgresql.service" ];
|
requires = [ "postgresql.service" ];
|
||||||
|
|
||||||
unitConfig.onFailure = ''
|
unitConfig.OnFailure = ''
|
||||||
|
invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)"
|
||||||
|
logs="$(journalctl _SYSTEMD_INVOCATION_ID= -u misskey-backup.service)"
|
||||||
|
|
||||||
${notifyError} "backup" "Misskey Backup Failure Notification" "$(<<EOMSG
|
${notifyError} "backup" "Misskey Backup Failure Notification" "$(<<EOMSG
|
||||||
A backup process has failed. Logs to follow:
|
A backup process has failed. Logs to follow:
|
||||||
|
|
||||||
$(journalctl _SYSTEMD_INVOCATION_ID=$(systemctl show --value -p InvocationID misskey-backup.service) -u misskey-backup.service)
|
$logs
|
||||||
|
|
||||||
EOMSG
|
EOMSG
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue