diff --git a/backup.nix b/backup.nix index 81677e3..32a053e 100644 --- a/backup.nix +++ b/backup.nix @@ -16,6 +16,27 @@ let tarRedisStdoutCmd = pkgs.writeScript "backup-misskey-redis" '' tar -cz -C /var/lib/redis-misskey . ''; + + notifyError = pkgs.writeShellApplication { + name = "notify-error"; + + runtimeInputs = [ pkgs.sendmail ]; + + text = '' + from="$1" + subject="$2" + text="$3" + + sendmail <