logrotate: fix /etc/crontab entry -- run as root
PATCH 1/1 logrotate: fix /etc/crontab entry -- run as root
* /etc/crontab entry was missing username field, so it never ran
Signed-off-by Jesse Gilles <[email protected]>
--- recipes/logrotate/logrotate_3.7.1.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/logrotate/logrotate_3.7.1.bb +2 -2
@@ -5,7 +5,7 @@ DEPENDS = "popt" RDEPENDS_${PN} = "cron" SECTION = "admin" LICENSE = "GPL" -PR = "r3" +PR = "r4" SRC_URI = "http://ftp.debian.org/debian/pool/main/l/logrotate/logrotate_${PV}.orig.tar.gz \ file://logrotate-3.7.1.patch \
@@ -28,7 +28,7 @@ do_install () { pkg_postinst () { # Add the logrotate line to /etc/crontab - grep -q "${base_sbindir}/logrotate" ${sysconfdir}/crontab || echo "*/5 * * * * ${base_sbindir}/logrotate ${sysconfdir}/logrotate.conf" >> ${sysconfdir}/crontab + grep -q "${base_sbindir}/logrotate" ${sysconfdir}/crontab || echo "*/5 * * * * root ${base_sbindir}/logrotate ${sysconfdir}/logrotate.conf" >> ${sysconfdir}/crontab } pkg_postrm() {
Signature · 1 line
1.7.0.4