view common/0logwatch @ 71:1a985a58dea5 puppet-3.6

Be specific about port blocking on Repeat Offender to try to prevent accidental lock-out
author IBBoard <dev@ibboard.co.uk>
date Sun, 18 Oct 2015 19:39:46 +0100
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