This file is indexed.

postinst is in memcachedb 1.2.0-11.

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

set -e

if [ "$1" = "configure" ]; then
    if ! getent passwd memcachedb >/dev/null; then
        adduser \
	    --quiet \
            --system \
            --disabled-login \
            --group \
            --home /var/lib/memcachedb \
	    --no-create-home \
            --gecos "Memcached Server" \
            --shell /bin/false \
            memcachedb
    fi

    if ! dpkg-statoverride --list /var/lib/memcachedb > /dev/null ; then
	dpkg-statoverride --update --add memcachedb memcachedb 755 /var/lib/memcachedb
    fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/memcachedb" ] || [ -e "/etc/init/memcachedb.conf" ]; then
	if [ ! -e "/etc/init/memcachedb.conf" ]; then
		update-rc.d memcachedb defaults >/dev/null
	fi
	invoke-rc.d memcachedb start || exit $?
fi
# End automatically added section