view common/0logwatch @ 42:72509bba75b5 puppet-3.6

Fix hgignore and add some files that accidentally got ignored
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2015 22:37:07 +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