view common/0logwatch @ 46:cd79745f0236 puppet-3.6

Don't specify how to restart SSHD so that Puppet does its default thing (and works)
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jun 2015 19:10:52 +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