diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2019-04-02 16:22:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-03 15:39:04 +0000 |
commit | b293414baec998788903f5359cd8c852b00b7f87 (patch) | |
tree | 968ea2884f6a4b1373d93cff3cf3d47ccd54475b /main/dovecot | |
parent | 958c8a3e09ca848ac8a11d60c09d8f1e65c4db98 (diff) | |
download | aports-b293414baec998788903f5359cd8c852b00b7f87.tar.bz2 aports-b293414baec998788903f5359cd8c852b00b7f87.tar.xz |
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.
Diffstat (limited to 'main/dovecot')
-rw-r--r-- | main/dovecot/APKBUILD | 2 | ||||
-rw-r--r-- | 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 $? |