view common/0logwatch @ 74:c2e5027202e2 puppet-3.6

Add missing dependency for Trac Subversion support on CentOS 7
author IBBoard <dev@ibboard.co.uk>
date Sun, 25 Oct 2015 20:55:19 +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