This file is indexed.

postinst is in kgb-bot 1.33-2ubuntu1.

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

set -e
set -u

if [ "$1" = "configure" ]; then
    adduser --system --quiet --group --home /dev/null --no-create-home \
        --disabled-login --gecos "KGB bot" --force-badname Debian-kgb

    if ! dpkg-statoverride --list /etc/kgb-bot/kgb.conf > /dev/null; then
        dpkg-statoverride --update --add root Debian-kgb 0640 /etc/kgb-bot/kgb.conf
    fi
fi

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