This file is indexed.

postinst is in libevd-0.1-0 0.1.28-4build2.

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
23
#!/bin/sh

set -e
export LC_ALL=C

type="$1"
preversion="$2"

if [ "$type" = "configure" ]; then
    if [ -n "$preversion" ]; then
        # Restart FileTea if upgrading from EventDance 0.1.18
        if dpkg --compare-versions "$preversion" lt 0.1.20; then
            invoke-rc.d filetea status >/dev/null 2>&1 && status=0 || status=$?
            if [ "$status" = "0" ]; then
                invoke-rc.d filetea restart
            fi
        fi
    fi
fi



exit 0