net-mail/dovecot: fix cert paths

install_cert path was changed in dovecot-2.4. Adjust cert paths in
conditional expression accordingly.

Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/45312
Closes: https://github.com/gentoo/gentoo/pull/45312
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexander Tsoy
2026-01-10 10:16:11 +03:00
committed by Sam James
parent 1cb04817f4
commit 42cb8cf308
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -237,8 +237,8 @@ pkg_postinst() {
fi
# Let's not make a new certificate if we already have one
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
if ! [[ -e "${ROOT}"/etc/dovecot/server.pem && \
-e "${ROOT}"/etc/dovecot/server.key ]]; then
einfo "Creating SSL certificate"
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
install_cert /etc/dovecot/server

View File

@@ -234,8 +234,8 @@ pkg_postinst() {
fi
# Let's not make a new certificate if we already have one
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
if ! [[ -e "${ROOT}"/etc/dovecot/server.pem && \
-e "${ROOT}"/etc/dovecot/server.key ]]; then
einfo "Creating SSL certificate"
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
install_cert /etc/dovecot/server