Mercurial > repos > other > Puppet
diff common/0logwatch @ 0:956e484adc12
Initial public release of Puppet configs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 16 Aug 2014 19:47:38 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/0logwatch Sat Aug 16 19:47:38 2014 +0000 @@ -0,0 +1,8 @@ +#!/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