2 # postinst script for @OLDPACKAGE@
4 # see: dh_installdeb(1)
7 # set -x # Be verbose, be very verbose.
9 # summary of how this script can be called:
10 # * <postinst> `configure' <most-recently-configured-version>
11 # * <old-postinst> `abort-upgrade' <new version>
12 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see /usr/share/doc/packaging-manual/
19 # quoting from the policy:
20 # Any necessary prompting should almost always be confined to the
21 # post-installation script, and should be protected with a conditional
22 # so that unnecessary prompting doesn't happen if a package's
23 # installation fails and the `postinst' is called with `abort-upgrade',
24 # `abort-remove' or `abort-deconfigure'.
26 . /usr/share/debconf/confmodule
30 # Patch Exim configuration files
31 @BINARY_PATH@/install-exim4.sh configure-files
32 if [ -f /etc/aliases.@OLDPACKAGE@-new ]
34 ucf --debconf-ok /etc/aliases.@OLDPACKAGE@-new /etc/aliases
35 rm /etc/aliases.@OLDPACKAGE@-new
37 if [ -f /etc/exim4/exim4.conf.@OLDPACKAGE@-new ]
39 ucf --debconf-ok /etc/exim4/exim4.conf.@OLDPACKAGE@-new /etc/exim4/exim4.conf
40 rm /etc/exim4/exim4.conf.@OLDPACKAGE@-new
42 if [ -f /etc/exim4/exim4.conf.template.@OLDPACKAGE@-new ]
44 ucf --debconf-ok /etc/exim4/exim4.conf.template.@OLDPACKAGE@-new /etc/exim4/exim4.conf.template
45 rm /etc/exim4/exim4.conf.template.@OLDPACKAGE@-new
47 if [ -f /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.@OLDPACKAGE@-new ]
49 ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.@OLDPACKAGE@-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
50 rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.@OLDPACKAGE@-new
54 abort-upgrade|abort-remove|abort-deconfigure)
58 echo "postinst called with unknown argument \`$1'" >&2
63 # dh_installdeb will replace this with shell code automatically
64 # generated by other debhelper scripts.