diff options
author | Andrea Perotti <aperotti@redhat.com> | 2018-08-31 18:36:12 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-18 10:06:13 +0000 |
commit | 8752c50ad1282d86cad473c332773ecc58107cc2 (patch) | |
tree | 8bf4691086910426e6c44b636ea9e5ce5a5e1e4a | |
parent | eaf5c9bcc2519c6b6e93f2de607cbf304e591d5c (diff) | |
download | sos-8752c50ad1282d86cad473c332773ecc58107cc2.tar.gz |
[logrotate] fix path for logrotate.status in RHEL7/CentOS7
In RHEL7/CentOS7 logrotate.status is placed in /var/lib/logrotate
rather then directly in /var/lib.
Resolves: #1412
Signed-off-by: Andrea Perotti <aperotti@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/logrotate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/logrotate.py b/sos/plugins/logrotate.py index df69080e..f2b9faf6 100644 --- a/sos/plugins/logrotate.py +++ b/sos/plugins/logrotate.py @@ -24,6 +24,7 @@ class LogRotate(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.add_copy_spec([ "/etc/logrotate*", "/var/lib/logrotate.status", + "/var/lib/logrotate/logrotate.status", self.var_puppet_gen + "/etc/logrotate-crond.conf", self.var_puppet_gen + "/var/spool/cron/root" ]) |