Skip to content

Commit

Permalink
[apt] Move unattended-upgrades log collection
Browse files Browse the repository at this point in the history
Having u-u logs collection inside the apt
plugin make more sense as it is using apt
functionnalities and python modules such as
apt, apt_inst, apt_pkg.

u-u is a mechanism to automatically install
security upgrades on Debian/Ubuntu. It is
enabled by default at installation.

Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
  • Loading branch information
Eric Desrochers committed Nov 25, 2020
1 parent 7314865 commit 9f057fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sos/report/plugins/apt.py
Expand Up @@ -20,7 +20,9 @@ class Apt(Plugin, DebianPlugin, UbuntuPlugin):

def setup(self):
self.add_copy_spec([
"/etc/apt", "/var/log/apt"
"/etc/apt",
"/var/log/apt",
"/var/log/unattended-upgrades"
])

self.add_forbidden_path("/etc/apt/auth.conf")
Expand Down
1 change: 0 additions & 1 deletion sos/report/plugins/logs.py
Expand Up @@ -48,7 +48,6 @@ def setup(self):
"/etc/rsyslog.d",
"/var/log/boot.log",
"/var/log/installer",
"/var/log/unattended-upgrades",
"/var/log/messages*",
"/var/log/secure*",
"/var/log/udev",
Expand Down

0 comments on commit 9f057fb

Please sign in to comment.