From 2b4b5b9176f9306542ba2385d5c57c82ee020d76 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Wed, 1 Jan 2025 20:27:53 -0500 Subject: [PATCH] fix email notification --- backup.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backup.nix b/backup.nix index b542aff..c10c2cd 100644 --- a/backup.nix +++ b/backup.nix @@ -98,11 +98,14 @@ in { wants = [ "network-online.target" ]; 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" "$(<