This file is indexed.

postinst is in unscd 0.51-1build2.

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
set -e

case "$1" in
    configure)
        # Create the unscd user
	    if [ -x /usr/sbin/adduser ] && [ -x /usr/bin/getent ] && [ -x /usr/sbin/addgroup ]; then
	        if ! getent group unscd >/dev/null 2>&1; then
		        addgroup --system unscd;
	        fi;
	        if ! id -u unscd >/dev/null 2>&1; then
		        adduser --quiet --system --ingroup unscd --no-create-home --home /var/lib/unscd unscd;
	        fi;
	    fi;
	    ;;
    *)
	    # do nothing
	    ;;
esac

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

exit 0;