From 4031ada385acbbedaa42a8037cee518573415b1b Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Wed, 1 Jan 2025 20:37:04 -0500 Subject: [PATCH] fix email notification, again, again --- backup.nix | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/backup.nix b/backup.nix index 1b11f75..b6a7972 100644 --- a/backup.nix +++ b/backup.nix @@ -98,21 +98,30 @@ in { wants = [ "network-online.target" ]; requires = [ "postgresql.service" ]; - unitConfig.OnFailure = let - script = pkgs.writeScript "misskey-backup-failure" '' - invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)" - logs="$(journalctl _SYSTEMD_INVOCATION_ID= -u misskey-backup.service)" + unitConfig.OnFailure = "misskey-backup-failure.service"; + }; - ${notifyError} "backup" "Misskey Backup Failure Notification" "$(<