This file is indexed.

preinst is in dovecot-core 1:2.2.33.2-1ubuntu4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "1:2.2.21-1~"; then
    # Some versions prior to 1:2.2.21-1 did ship and activate dovecot.socket by
    # default. This default was changed in 1:2.2.21-1 by disabling
    # dovecot.socket on installation and also explicitly stopping
    # dovecot.socket during prerm. However, if we are upgrading from older
    # versions, an incoming IMAP connection between old prerm and upgrade end
    # might re-activate dovecot.service with an inconsistent on-disk layout. We
    # do a best-effort attempt to avoid this by stopping dovecot.socket and
    # dovecot.service here. See #814999 for more details.
    if [ -d /run/systemd/system ]; then
        deb-systemd-invoke stop dovecot.socket dovecot.service || true
    fi
fi

# Automatically added by dh_installdeb/11.1.4ubuntu1
dpkg-maintscript-helper rm_conffile /etc/dovecot/README 1:2.2.27-3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init/dovecot.conf 1:2.2.22-1ubuntu4 -- "$@"
# End automatically added section