view common/0logwatch @ 318:6c89e2c3b5aa

Fix outbound mail IP Moved smtp_bind_address to the place where it makes a difference - the SMTP (not SMTPD) service!
author IBBoard <dev@ibboard.co.uk>
date Sat, 29 Feb 2020 14:08:49 +0000
parents 956e484adc12
children
line wrap: on
line source

#!/bin/bash

DailyReport=`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"`

if [ "$DailyReport" != "No" ] && [ "$DailyReport" != "no" ]
then
    logwatch
fi