diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-28 15:54:04 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-10-04 00:28:31 +0200 |
| commit | fd7973168ab1c8f696cc5e8bcddfeac224cfc775 (patch) | |
| tree | dbd96fb742333ec9ceece85e7e4cac7cb7701860 | |
| parent | 66182220e8b1133af83f58e40d9d3fa3d358299a (diff) | |
| download | meta-openembedded-fd7973168ab1c8f696cc5e8bcddfeac224cfc775.tar.gz | |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb index a1c4ff4ad4..07c73c5f76 100644 --- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.2.bb +++ b/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 | |||
| 88 | GROUPADD_PARAM_${PN} = "-r ftp" | 88 | GROUPADD_PARAM_${PN} = "-r ftp" |
| 89 | 89 | ||
| 90 | pkg_postinst_${PN}() { | 90 | pkg_postinst_${PN}() { |
| 91 | if [ -n "$D" ]; then | 91 | if [ -z "$D" ]; then |
| 92 | exit 0 | ||
| 93 | fi | ||
| 94 | if type systemd-tmpfiles >/dev/null; then | 92 | if type systemd-tmpfiles >/dev/null; then |
| 95 | systemd-tmpfiles --create | 93 | systemd-tmpfiles --create |
| 96 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | 94 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then |
| 97 | ${sysconfdir}/init.d/populate-volatile.sh update | 95 | ${sysconfdir}/init.d/populate-volatile.sh update |
| 98 | fi | 96 | fi |
| 97 | fi | ||
| 99 | } | 98 | } |
