mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 10:22:12 +01:00
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:
parent
d68272f5e6
commit
e860093fe1
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user