From b293414baec998788903f5359cd8c852b00b7f87 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Tue, 2 Apr 2019 16:22:07 +0000 Subject: main/dovecot: add warning Fatal: Dovecot version mismatch * if version_ignore=yes is not configured in Dovecot any process which requires authentication will be broken until dovecot is restarted. Debian restarts the service in dovecot-core.postinst. We show a warning message. --- main/dovecot/APKBUILD | 2 +- main/dovecot/dovecot.post-upgrade | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 2738d254e3..4fa96a3c45 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -6,7 +6,7 @@ pkgname=dovecot pkgver=2.3.5.1 _pkgvermajor=2.3 -pkgrel=0 +pkgrel=1 _pigeonholever=0.5.5 _pigeonholevermajor=${_pigeonholever%.*} pkgdesc="IMAP and POP3 server" diff --git a/main/dovecot/dovecot.post-upgrade b/main/dovecot/dovecot.post-upgrade index 2bdd73d967..1410be35f4 100644 --- a/main/dovecot/dovecot.post-upgrade +++ b/main/dovecot/dovecot.post-upgrade @@ -9,8 +9,13 @@ if [ "$(apk version -t "$ver_old" "2.3.2.1-r1")" = "<" ]; then * POP3, LMTP and Submission protocols were moved into subpackages: * dovecot-pop3d, dovecot-lmtpd and dovecot-submissiond. If you use * some of these protocols, you have to install particular subpackage. - * + * EOF fi -exit 0 +# warn Dovecot version mismatch +if ! grep ^"version_ignore=yes" /etc/dovecot/dovecot.conf; then + printf "dovecot restart required (version_ignore=yes not set)\n" +fi + +exit $? -- cgit v1.2.3