fix notify

This commit is contained in:
jaina heartles 2025-01-01 21:16:57 -05:00
parent dc250cadbb
commit 386d136d3c

View file

@ -20,7 +20,7 @@ let
notifyErrorPkg = pkgs.writeShellApplication {
name = "notify-error";
runtimeInputs = [ pkgs.system-sendmail ];
runtimeInputs = [ pkgs.system-sendmail pkgs.coreutils ];
text = ''
from="noreply+$1@admin.egirls.gay"
@ -119,14 +119,13 @@ in {
invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)"
logs="$(journalctl _SYSTEMD_INVOCATION_ID= -u misskey-backup.service)"
${notifyErrorPkg}/bin/notify-error "backup" "Misskey Backup Failure Notification" "$(<<EOMSG
${notifyErrorPkg}/bin/notify-error "backup" "Misskey Backup Failure Notification" "$(cat <<EOMSG
A backup process has failed. Logs to follow:
$logs
EOMSG
)
"
)"
'';
requires = [ "postfix.service" ];