This file is indexed.

postinst is in libnss-db 2.2.3pre1-3.2ubuntu3.

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
24
25
26
27
28
29
30
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    if [ -n "$2" ]; then
        if dpkg --compare-versions $2 lt 2.1.1-12 && \
           dpkg --compare-versions $2 gt 2.1.1-0pre1.3
        then
            if [ -f /var/db/passwd.db ]; then
                mv /var/db /var/db.old
                ln -sf /var/lib/misc /var/db
                cp -a /var/db.old/*.db /var/lib/misc/.
                rm -rf /var/db.old
            elif [ -f /var/state/glibc/passwd.db ]; then
                mv /var/state/glibc /var/state/glibc.old
                ln -sf /var/lib/misc /var/state/glibc
                cp -a /var/state/glibc.old/*.db /var/lib/misc/.
                rm -rf /var/state/glibc.old
            fi
        fi
    fi
    if [ -x /etc/init.d/nscd ]; then
        if [ -x /usr/sbin/invoke-rc.d ]; then
           invoke-rc.d nscd restart
       else
           /etc/init.d/nscd restart
       fi
    fi
fi