[yocto] [meta-security][PATCH 2/2] clamav: update postinit
Armin Kuster
akuster808 at gmail.com
Tue Jul 3 15:29:46 PDT 2018
log_check] WARNING: Intentionally failing postinstall scriptlets of ['suricata', 'clamav'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ()
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
recipes-security/clamav/clamav_0.99.3.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-security/clamav/clamav_0.99.3.bb b/recipes-security/clamav/clamav_0.99.3.bb
index 043fa21..688250d 100644
--- a/recipes-security/clamav/clamav_0.99.3.bb
+++ b/recipes-security/clamav/clamav_0.99.3.bb
@@ -93,8 +93,8 @@ do_install_append() {
fi
}
-pkg_postinst_${PN} () {
- if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
+pkg_postinst_ontarget_${PN} () {
+ if [ -e /etc/init.d/populate-volatile.sh ] ; then
${sysconfdir}/init.d/populate-volatile.sh update
fi
chown ${UID}:${GID} ${localstatedir}/lib/clamav
--
2.7.4
More information about the yocto
mailing list