diff options
Diffstat (limited to 'sendmailadvanced.conf')
-rwxr-xr-x | sendmailadvanced.conf | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sendmailadvanced.conf b/sendmailadvanced.conf index 57e607f..de6deb9 100755 --- a/sendmailadvanced.conf +++ b/sendmailadvanced.conf @@ -20,14 +20,18 @@ body_header_hook() # things to put into foot of email body_footer_hook() { - if [ "$(whoami)" == "root" ] && [ "$1" == "last-backups" ]; then - echo "----------------------- Last Backups Begin -------------------------" - echo - last-backups - echo - echo "------------------------ Last Backups End --------------------------" - echo - return 0 + if [ "$(whoami)" == "root" ]; then + case "$1" in + 'last-backups') + echo "----------------------- Last Backups Begin -------------------------" + echo + last-backups + echo + echo "------------------------ Last Backups End --------------------------" + echo + return 0 + ;; + esac fi echo "Unknown footer-hook: '$1'" } |