This file is indexed.

postinst is in postgresql-8.4 8.4.11-1.

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 -e

VERSION=8.4


if [ "$1" = configure ]; then
    # fix init script stop priority on upgrades
    if dpkg --compare-versions "$2" le-nl "8.4~rc2-1"; then
        echo "Fixing init script priorities..."
        for l in 0 1 6; do
            old=/etc/rc$l.d/K19postgresql-8.4
            new=/etc/rc$l.d/K21postgresql-8.4
            if [ -e $old ] && ! [ -e $new ]; then
                mv $old $new
            fi
        done
    fi

    . /usr/share/postgresql-common/maintscripts-functions

    configure_version $VERSION "$2"
fi