This file is indexed.

postinst is in deluged 1.3.6-0ubuntu3.

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

set -e

add_override()
{
    # add_override <user> <group> <perms> <file>
    if ! dpkg-statoverride --list $4 >/dev/null 2>&1; then
      dpkg-statoverride --update --add $@
    fi
}

case "$1" in
  configure)
    if ! getent passwd debian-deluged >/dev/null; then
      adduser --system --group --quiet --no-create-home --home /var/lib/deluged debian-deluged
    fi

    add_override debian-deluged adm 2750 /var/log/deluged
    add_override debian-deluged debian-deluged 0750 /var/lib/deluged/config
    ;;
esac

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


exit 0;