From 5330b95a64d0ab52d649844a578dafabdcf1ba00 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 2 Nov 2021 19:51:39 +0100 Subject: [PATCH] collectd: Do not install /var/log Previously it installed an empty /var/log without anything in it. Signed-off-by: Peter Kjellerstedt Signed-off-by: Khem Raj --- meta-oe/recipes-extended/collectd/collectd_5.12.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb b/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb index b443afdb18..1c613b0977 100644 --- a/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb +++ b/meta-oe/recipes-extended/collectd/collectd_5.12.0.bb @@ -70,8 +70,8 @@ do_install:append() { # Fix configuration file to allow collectd to start up sed -i 's!^#FQDNLookup[ \t]*true!FQDNLookup false!g' ${D}${sysconfdir}/collectd.conf - rmdir "${D}${localstatedir}/run" - rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" + rmdir ${D}${localstatedir}/run ${D}${localstatedir}/log + rmdir --ignore-fail-on-non-empty ${D}${localstatedir} # Install systemd unit files install -d ${D}${systemd_unitdir}/system