aports/main/dovecot/dovecot.post-upgrade
Stuart Cardall b293414bae 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.
2019-04-03 15:39:04 +00:00

21 lines
514 B
Bash

#!/bin/sh
ver_new="$1"
ver_old="$2"
if [ "$(apk version -t "$ver_old" "2.3.2.1-r1")" = "<" ]; then
cat >&2 <<-EOF
*
* 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
# 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 $?