collectd: remove empty /var/run directory
authorJonathan Liu <net147@gmail.com>
Sat, 6 Jul 2013 11:50:23 +0000 (11:50 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:31:26 +0000 (08:31 -0800)
The /var/run directory is already created by base-files.

(From meta-openembedded rev: 9ea2df5823f06f3d6600f014527222fdd80ab73b)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-extended/collectd/collectd_5.2.2.bb

index 8641530..20df494 100644 (file)
@@ -39,6 +39,9 @@ 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}"
 }
 
 INITSCRIPT_NAME = "collectd"