From: Chen Qi Date: Sun, 28 Sep 2014 07:54:04 +0000 (+0800) Subject: vsftpd: fix pkg_postinst X-Git-Tag: rev_ivi_2015_02_04~1358 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc9e95732dd56146a64e298a1e329203ead29739;p=scm%2Fbb%2Ftizen-distro.git vsftpd: fix pkg_postinst Fix pkg_postinst to not exit if "$D" is not empty. Otherwise, postinsts from update-rc.d.bbclass would not run and the symlinks under /etc/rc?.d/ would not be created. (From meta-openembedded rev: fd7973168ab1c8f696cc5e8bcddfeac224cfc775) Signed-off-by: Chen Qi Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- diff --git a/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb b/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb index a1c4ff4..07c73c5 100644 --- a/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb +++ b/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb @@ -88,12 +88,11 @@ USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp GROUPADD_PARAM_${PN} = "-r ftp" pkg_postinst_${PN}() { - if [ -n "$D" ]; then - exit 0 - fi + if [ -z "$D" ]; then if type systemd-tmpfiles >/dev/null; then - systemd-tmpfiles --create + systemd-tmpfiles --create elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then - ${sysconfdir}/init.d/populate-volatile.sh update + ${sysconfdir}/init.d/populate-volatile.sh update fi + fi }