Mercurial > repos > other > Puppet
view common/0logwatch @ 113:34302ede8d87 puppet-3.6
Make sure our websites load after ALL other Apache config
If we don't do this then <IfModule> statements in vhosts
probably won't work, because the load will be done in named
config file that seems to get parsed *after* the vhost
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 04 Jun 2016 14:07:37 +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