mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-10 16:40:03 +00:00
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>
This commit is contained in:
@@ -88,12 +88,11 @@ USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp
|
|||||||
GROUPADD_PARAM_${PN} = "-r ftp"
|
GROUPADD_PARAM_${PN} = "-r ftp"
|
||||||
|
|
||||||
pkg_postinst_${PN}() {
|
pkg_postinst_${PN}() {
|
||||||
if [ -n "$D" ]; then
|
if [ -z "$D" ]; then
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if type systemd-tmpfiles >/dev/null; then
|
if type systemd-tmpfiles >/dev/null; then
|
||||||
systemd-tmpfiles --create
|
systemd-tmpfiles --create
|
||||||
elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
|
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
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user