mkbackup-btrfs/files/usr/lib/systemd/scripts/systemd-btrfs-email
2019-03-05 13:20:31 +01:00

12 lines
204 B
Bash
Executable file

#!/bin/bash
/usr/sbin/sendmail -t <<ERRMAIL
To: $1
From: systemd <root@$HOSTNAME>
Subject: $2
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
$(btrfs scrub status "$3")
ERRMAIL