view common/0logwatch @ 83:b7c8f97017e5 puppet-3.6

Add mlocate as another core package, since it wasn't on our (very) minimal CentOS 7 install
author IBBoard <dev@ibboard.co.uk>
date Tue, 24 Nov 2015 20:48:36 +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