diff options
| author | Liu Yiding <liuyd.fnst@fujitsu.com> | 2025-10-31 13:37:37 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-31 08:55:36 -0700 |
| commit | e6c0f055d78726151eb9fee71c17d14e05597acb (patch) | |
| tree | ba4e9cd5e7cbc21c5c69202775b805f2c284259b /meta-networking | |
| parent | dab28c7ddd4899d7feac2f6c3a66c0c2f7e3f572 (diff) | |
| download | meta-openembedded-e6c0f055d78726151eb9fee71c17d14e05597acb.tar.gz | |
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 <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb index 5894c76bac..40cf991ae1 100644 --- a/meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb +++ b/meta-networking/recipes-support/dovecot/dovecot_2.4.1-4.bb | |||
| @@ -54,8 +54,11 @@ SYSTEMD_AUTO_ENABLE = "disable" | |||
| 54 | do_install:append () { | 54 | do_install:append () { |
| 55 | rm -rf ${D}${libdir}/dovecot/dovecot-config | 55 | rm -rf ${D}${libdir}/dovecot/dovecot-config |
| 56 | install -d 755 ${D}/etc/dovecot | 56 | install -d 755 ${D}/etc/dovecot |
| 57 | touch ${D}/etc/dovecot/dovecot.conf | ||
| 58 | chmod 644 ${D}/etc/dovecot/dovecot.conf | 57 | chmod 644 ${D}/etc/dovecot/dovecot.conf |
| 58 | touch ${D}/etc/dovecot/ssl-key.pem | ||
| 59 | touch ${D}/etc/dovecot/ssl-cert.pem | ||
| 60 | chmod 600 ${D}/etc/dovecot/ssl-key.pem | ||
| 61 | chmod 600 ${D}/etc/dovecot/ssl-cert.pem | ||
| 59 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then | 62 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then |
| 60 | install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system | 63 | install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system |
| 61 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service | 64 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service |
