mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
postfix: fix pkg_postinst_${PN}
"exit 0" will break the postinst logic
below the line "exit 0" such as:
===
update-alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 120
update-alternatives --install /usr/bin/mailq mailq /usr/bin/mailq.postfix 120
update-alternatives --install /usr/bin/newaliases newaliases /usr/bin/newaliases.postfix 120
===
It's enough to call "$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}"
, so remove it to guarantee the postinstall logic is correct
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -246,10 +246,10 @@ pkg_postinst_${PN} () {
|
||||
# This can fail depending on host setup
|
||||
if ! newaliases -C $D/etc/postfix/main.cf -oA$D/etc/aliases; then
|
||||
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
|
||||
exit 0
|
||||
else
|
||||
touch $D/etc/postfix/virtual_alias
|
||||
postmap -c $D/etc/postfix $D/etc/postfix/virtual_alias
|
||||
fi
|
||||
touch $D/etc/postfix/virtual_alias
|
||||
postmap -c $D/etc/postfix $D/etc/postfix/virtual_alias
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user