From: Frank Brehm Date: Wed, 19 Apr 2017 19:31:29 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to apt run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=6eb2249c74ab69aae165bd79c253c286f325f1bf;p=config%2Fsarah%2Fetc.git saving uncommitted changes in /etc prior to apt run --- diff --git a/.etckeeper b/.etckeeper index baf6dc6..961a00c 100755 --- a/.etckeeper +++ b/.etckeeper @@ -735,6 +735,7 @@ maybe chmod 0644 'logwatch/conf/logfiles/fail2ban.conf' maybe chmod 0644 'logwatch/conf/logfiles/maillog.conf' maybe chmod 0644 'logwatch/conf/logfiles/secure.conf' maybe chmod 0644 'logwatch/conf/logfiles/syslog.conf' +maybe chmod 0644 'logwatch/conf/logwatch.conf' maybe chmod 0755 'logwatch/conf/services' maybe chmod 0755 'logwatch/scripts' maybe chmod 0755 'logwatch/scripts/services' diff --git a/cron.daily/00logwatch b/cron.daily/00logwatch index ddf11fd..06edf2f 100755 --- a/cron.daily/00logwatch +++ b/cron.daily/00logwatch @@ -4,7 +4,7 @@ test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0 #execute -/usr/sbin/logwatch --output mail +/usr/sbin/logwatch --encode base64 --output mail #Note: It's possible to force the recipient in above command #Just pass --mailto address@a.com instead of --output mail diff --git a/logwatch/conf/logwatch.conf b/logwatch/conf/logwatch.conf new file mode 100644 index 0000000..b382226 --- /dev/null +++ b/logwatch/conf/logwatch.conf @@ -0,0 +1,24 @@ +# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf) + +#Output/Format Options +#By default Logwatch will print to stdout in text with no encoding. +#To make email Default set Output = mail to save to file set Output = file +Output = stdout +#To make Html the default formatting Format = html +Format = text +#To make Base64 [aka uuencode] Encode = base64 +Encode = none + +# Default person to mail reports to. Can be a local account or a +# complete email address. Variable Output should be set to mail, or +# --output mail should be passed on command line to enable mail feature. +MailTo = frank@brehm-online.com + + +# The default detail level for the report. +# This can either be Low, Med, High or a number. +# Low = 0 +# Med = 5 +# High = 10 +Detail = High +