Mercurial > repos > other > Puppet
view common/0logwatch @ 117:3fdde0638538 puppet-3.6
Redirect dumb bots that removed the ID number to the main module page
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 08 Jul 2016 20:34:29 +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