fuck shit
This commit is contained in:
parent
791ae381bb
commit
99f329f82b
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ let
|
|||
tar -cz -C /var/lib/redis-misskey .
|
||||
'';
|
||||
|
||||
notifyError = pkgs.writeShellApplication {
|
||||
notifyErrorPkg = pkgs.writeShellApplication {
|
||||
name = "notify-error";
|
||||
|
||||
runtimeInputs = [ pkgs.system-sendmail ];
|
||||
|
@ -111,7 +111,7 @@ in {
|
|||
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
|
||||
${notifyErrorPkg}/bin/notify-error "backup" "Misskey Backup Failure Notification" "$(<<EOMSG
|
||||
A backup process has failed. Logs to follow:
|
||||
|
||||
$logs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue