view common/0logwatch @ 282:6668c0708887

Remove unused "http" module Everyone should be using HTTPS anyway these days and we don't even use the definition for HTTP->HTTPS redirects.
author IBBoard <dev@ibboard.co.uk>
date Sat, 15 Feb 2020 20:08:21 +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