summaryrefslogtreecommitdiff
path: root/recipes-extended/logrotate/logrotate_3.8.7.bbappend
blob: efebecb855f50f68dcccaa6aa6fd23e665cea593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PR .= ".mlinux2"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"

SRC_URI += "file://logrotate.conf"

do_install_append() {
	# setup cron to run logrotate more often
	rm -f ${D}${sysconfdir}/cron.daily/logrotate
	install -d ${D}${sysconfdir}/cron.d
	echo "*/5 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" > ${D}${sysconfdir}/cron.d/logrotate

	install -m 0644 ${WORKDIR}/logrotate.conf ${D}${sysconfdir}/
}