From 8a52a769c77e2bbcd436791b695c25e4d8598a77 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 9 Oct 2019 10:52:42 +0200 Subject: sendmailadvanced.conf: footer_hook paccheck neu --- sendmailadvanced.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sendmailadvanced.conf b/sendmailadvanced.conf index de6deb9..95caaeb 100755 --- a/sendmailadvanced.conf +++ b/sendmailadvanced.conf @@ -31,6 +31,17 @@ body_footer_hook() echo return 0 ;; + 'paccheck') + if command -v paccheck >/dev/null; then + echo "----------------------- Pacman Check Begin -------------------------" + echo + paccheck --list-broken + echo + echo "------------------------ Pacman Check End --------------------------" + echo + return 0 + fi + ;; esac fi echo "Unknown footer-hook: '$1'" -- cgit v1.2.3-70-g09d2