view common/0logwatch @ 146:816e35f86a5d puppet-3.6

Remove mod_auth_token and replace with mod_xsendfile
author IBBoard <dev@ibboard.co.uk>
date Sat, 25 Mar 2017 20:18:13 +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