This repository was archived by the owner on Jan 7, 2020. It is now read-only.

Description
Expected Behavior
Logrotate should be rotating Uchiwa log files. This was reported and fixed in #765 however the fix has been lost.
Current Behavior
Logrotate currently ignores the Uchiwa config drop-in as it has the wrong mode owner and mode.
Possible Solution
RPM needs to set the logrotate config file as owner by root:root and mode 0644. Currently they are set as follows:
$ rpm -qlv uchiwa | grep logrotate
-rw-rw-r-- 1 uchiwa uchiwa 144 Feb 27 21:46 /etc/logrotate.d/uchiwa
Steps to Reproduce (for bugs)
logrotate -d /etc/logrotate.conf produces error: Ignoring uchiwa because of bad file mode - must be 0644 or 0444.
- Fix file mode to be
0644
logrotate -d /etc/logrotate.conf now produces Ignoring uchiwa because the file owner is wrong (should be root).
- Change ownership to
root:root
logrotate -d /etc/logrotate.conf no longer ignores uchiwa config
Your Environment
- Uchiwa version used: 1.6.0
- Operating System and version (e.g. Ubuntu 14.04): EL7