view common/0logwatch @ 168:b13e0de66b54 puppet-3.6

Change MySQL/MariaDB settings to support all Unicode
author IBBoard <dev@ibboard.co.uk>
date Fri, 01 Sep 2017 11:29:55 +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