view common/0logwatch @ 309:7fa5e230fc94

Fix type in Yum update checking Apparently Yum handles it, but DNF is pickier
author IBBoard <dev@ibboard.co.uk>
date Sun, 23 Feb 2020 15:43:27 +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