This file is indexed.

postinst is in memcachedb 1.2.0-12build1.

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

set -e

dpkg-maintscript-helper mv_conffile /etc/memcachedb.conf /etc/memcachedb.d/default.conf 1.2.0-11 memcachedb -- "$@"

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/10.6.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/memcachedb" ]; then
		update-rc.d memcachedb defaults >/dev/null
		invoke-rc.d memcachedb start || exit $?
	fi
fi
# End automatically added section