Univention Bugzilla – Bug 51505
duplicated logrotate conf for wtmp and btmp
Last modified: 2021-05-25 16:03:17 CEST
stderr: + rotate_logfiles 16:37:10 + test -x /usr/sbin/logrotate 16:37:10 + logrotate -f /etc/logrotate.conf 16:37:10 error: /etc/logrotate.conf:31 duplicate log entry for /var/log/wtmp 16:37:10 error: /etc/logrotate.conf:38 duplicate log entry for /var/log/btmp 16:37:10 16:37:10 fail: return code 1 /etc/univention/templates/files/etc/logrotate.conf defines: # no packages own wtmp, or btmp -- we'll rotate them here /var/log/wtmp { missingok monthly create 0664 root utmp rotate 12 } /var/log/btmp { missingok monthly create 0660 root utmp rotate 12 } and: # dpkg -S /etc/logrotate.d/{w,b}tmp logrotate: /etc/logrotate.d/wtmp logrotate: /etc/logrotate.d/btmp # cat /etc/logrotate.d/wtmp # no packages own wtmp -- we'll rotate it here /var/log/wtmp { missingok monthly create 0664 root utmp minsize 1M rotate 1 } # cat /etc/logrotate.d/btmp # no packages own btmp -- we'll rotate it here /var/log/btmp { missingok monthly create 0660 root utmp rotate 1 }
The configuration differs. Do we need to make a UCR template out of etc/logrotate.d/{w,b}tmp? I don't think so. So removing this from template is done in git:feature/ucs5.
[feature/ucs5] 2bae7a2df2 Bug #51505,Bug #32509 base: Update UCR template [WIP] .../conffiles/etc/bash.bashrc | 9 +- .../conffiles/etc/default/ssh | 6 - .../conffiles/etc/init.d/networking | 45 ++++--- .../conffiles/etc/init.d/nscd | 143 --------------------- .../conffiles/etc/init.d/rdate | 53 -------- .../conffiles/etc/init.d/rpcbind | 109 ---------------- base/univention-base-files/conffiles/etc/inputrc | 4 +- base/univention-base-files/conffiles/etc/issue | 27 ++-- base/univention-base-files/conffiles/etc/issue.net | 22 ++-- .../conffiles/etc/logrotate.conf | 5 + ... 26 files changed, 144 insertions(+), 436 deletions(-) Package: univention-base-files Version: 9.0.0-6A~5.0.0.202006171058
OK: rebase of config files OK: changelog entry
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".