app-admin/logrotate: Correct downstream changes to take effect

By accident the upstream files from the example folder got used,
instead of the downstream files that were added in the files/ folder.
Also, the configuration file didn't get installed.

Use the right paths to install the downstream files.
This commit is contained in:
Kai Lueke 2021-11-22 16:59:44 +01:00
parent d68272f5e6
commit e860093fe1
2 changed files with 4 additions and 3 deletions

View File

@ -2,4 +2,4 @@
Description=Rotate and Compress System Logs
[Service]
ExecStart=/usr/sbin/logrotate /usr/share/logrotate/logrotate.conf
ExecStart=/usr/bin/logrotate /usr/share/logrotate/logrotate.conf

View File

@ -64,12 +64,13 @@ src_install() {
doman logrotate.8
dodoc ChangeLog.md
insinto /etc
insinto /usr/share/logrotate
doins "${FILESDIR}"/logrotate.conf
use cron && install_cron_file
systemd_dounit examples/logrotate.{service,timer}
systemd_dounit examples/logrotate.timer
systemd_dounit "${FILESDIR}"/logrotate.service
systemd_enable_service multi-user.target logrotate.timer
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf