This file is indexed.

postinst is in maradns 2.0.13-1.2.

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

set -e

if ! id -u maradns >/dev/null 2>&1 ; then

    echo "creating MaraDNS system user..."
    adduser --quiet --system --group --no-create-home --home /etc/maradns maradns

fi

mkdir -p /etc/maradns/logger
echo "WARNING: "
echo "The config has changed: please use maradns_user = \"maradns\" from now on,"
echo "or manually set maradns_uid and maradns_gid"

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/maradns" ]; then
		update-rc.d maradns defaults >/dev/null
		invoke-rc.d maradns start || exit $?
	fi
fi
# End automatically added section

exit 0