fix notify
This commit is contained in:
parent
dc250cadbb
commit
386d136d3c
1 changed files with 3 additions and 4 deletions
|
@ -20,7 +20,7 @@ let
|
||||||
notifyErrorPkg = pkgs.writeShellApplication {
|
notifyErrorPkg = pkgs.writeShellApplication {
|
||||||
name = "notify-error";
|
name = "notify-error";
|
||||||
|
|
||||||
runtimeInputs = [ pkgs.system-sendmail ];
|
runtimeInputs = [ pkgs.system-sendmail pkgs.coreutils ];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
from="noreply+$1@admin.egirls.gay"
|
from="noreply+$1@admin.egirls.gay"
|
||||||
|
@ -119,14 +119,13 @@ in {
|
||||||
invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)"
|
invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)"
|
||||||
logs="$(journalctl _SYSTEMD_INVOCATION_ID= -u 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:
|
A backup process has failed. Logs to follow:
|
||||||
|
|
||||||
$logs
|
$logs
|
||||||
|
|
||||||
EOMSG
|
EOMSG
|
||||||
)
|
)"
|
||||||
"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
requires = [ "postfix.service" ];
|
requires = [ "postfix.service" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue