This file is indexed.

postinst is in console-log 1.2-1ubuntu1.

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

USERNAME="Debian-console-log"

[ -n "$CONLOGDEBUG" ] && set -x

# Add user
if [ "$1" = "configure" ]; then
    echo >&2 'Adding system user'
    adduser --system --group --home /nonexistent \
	    --no-create-home --disabled-login --force-badname $USERNAME
    adduser $USERNAME adm
fi
    
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/console-log" ]; then
		update-rc.d console-log defaults >/dev/null
		invoke-rc.d console-log start || exit $?
	fi
fi
# End automatically added section


# end of file