dovecot: Fix service start error
PATCH 1/1 dovecot: Fix service start error
1.Fix following dovecot.service starting error.
dovecot[364]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 48: cert_file: open(/etc/dovecot/ssl-cert.pem) failed: No such file or directory systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a
systemd[1]: dovecot.service: Failed with result 'exit-code'.
2. There is no need to do "touch ${D}/etc/dovecot/dovecot.conf" as it was created by dovecot after dovecot was upgraded to 2.4.1-4.
Signed-off-by Liu Yiding <[email protected]>
--- meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb +4 -1
@@ -54,8 +54,11 @@ SYSTEMD_AUTO_ENABLE = "disable" do_install:append () { rm -rf ${D}${libdir}/dovecot/dovecot-config install -d 755 ${D}/etc/dovecot - touch ${D}/etc/dovecot/dovecot.conf chmod 644 ${D}/etc/dovecot/dovecot.conf + touch ${D}/etc/dovecot/ssl-key.pem + touch ${D}/etc/dovecot/ssl-cert.pem + chmod 600 ${D}/etc/dovecot/ssl-key.pem + chmod 600 ${D}/etc/dovecot/ssl-cert.pem if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
Signature · 1 line
2.43.0