]> git.proxmox.com Git - proxmox-mailgateway.git/blame - postinst.in
depend on new kernel 4.13.13-5, bump version to 5.0-7
[proxmox-mailgateway.git] / postinst.in
CommitLineData
de416bd6
DM
1#! /bin/sh
2
3# Abort if any command returns an error value
4set -e
5
6# This script is called as the last step of the installation of the
7# package. All the package's files are in place, dpkg has already
8# done its automatic conffile handling, and all the packages we depend
9# of are already fully installed and configured.
10
11# The following idempotent stuff doesn't generally need protecting
12# against being run in the abort-* cases.
13
14case "$1" in
15 configure)
16 # Configure this package. If the package must prompt the user for
17 # information, do it here.
18
19 # setup kernel links for installation CD (rescue boot)
20 mkdir -p /boot/pve
21 ln -sf /boot/vmlinuz-@KVNAME@ /boot/pve/vmlinuz
22 ln -sf /boot/initrd.img-@KVNAME@ /boot/pve/initrd.img
23
24 # There are three sub-cases:
25 if test "${2+set}" != set; then
26 # We're being installed by an ancient dpkg which doesn't remember
27 # which version was most recently configured, or even whether
28 # there is a most recently configured version.
29 :
30
31 elif test -z "$2" -o "$2" = "<unknown>"; then
32 # The package has not ever been configured on this system, or was
33 # purged since it was last configured.
34 :
35
36 else
37 # Version $2 is the most recently configured version of this
38 # package.
39 :
40
41 fi ;;
42 abort-upgrade)
43 # Back out of an attempt to upgrade this package FROM THIS VERSION
44 # to version $2. Undo the effects of "prerm upgrade $2".
45 :
46
47 ;;
48 abort-remove)
49 if test "$2" != in-favour; then
50 echo "$0: undocumented call to \`postinst $*'" 1>&2
51 exit 0
52 fi
53 # Back out of an attempt to remove this package, which was due to
54 # a conflict with package $3 (version $4). Undo the effects of
55 # "prerm remove in-favour $3 $4".
56 :
57
58 ;;
59 abort-deconfigure)
60 if test "$2" != in-favour -o "$5" != removing; then
61 echo "$0: undocumented call to \`postinst $*'" 1>&2
62 exit 0
63 fi
64 # Back out of an attempt to deconfigure this package, which was
65 # due to package $6 (version $7) which we depend on being removed
66 # to make way for package $3 (version $4). Undo the effects of
67 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
68 :
69
70 ;;
71 *) echo "$0: didn't understand being called with \`$1'" 1>&2
72 exit 0;;
73esac
74
75exit 0