ansible-edda/root/usr/local/bin/zpool-status-mail.j2

12 lines
218 B
Plaintext
Raw Normal View History

2022-08-28 04:02:18 +02:00
#!/bin/sh
/usr/sbin/sendmail -t <<SYSTEMDMAIL
To: root
From: systemd <{{ hostname }}>
Subject: zpool status $1
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
$(zpool status "$1")
SYSTEMDMAIL