]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub_fail: fix sendmail detection
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Jan 2024 02:07:05 +0000 (18:07 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 12 Jan 2024 02:08:46 +0000 (18:08 -0800)
commit83535ee5c9e3f040258d6d7456c8b5504fb6e6f5
tree8699ac61145945227cc7b4ce6469a56dfa25c8a6
parent595874f26b6d8f989d4258faacbe9309ad65d80e
xfs_scrub_fail: fix sendmail detection

This script emails the results of failed scrub runs to root.  We
shouldn't be hardcoding the path to the mailer program because distros
can change the path according to their whim.  Modify this script to use
command -v to find the program.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/xfs_scrub_fail.in