This file is indexed.

postinst is in miredo-server 1.2.6-4.

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
35
36
37
38
#!/bin/sh

set -e

case "$1" in
  configure)
    if ! getent passwd miredo-server >/dev/null; then
      adduser --quiet --system --home /var/run/miredo-server --no-create-home miredo-server
    fi
  ;;
esac

# Those using dependency based boot sequencing and installing
# miredo-server before version 1.1.5-2 would miss
# the runlevel 2 start symlink.  Recover from this.
if [ "$1" = "configure" ] \
   && dpkg --compare-versions "$2" le "1.1.5-2" \
   && [ -f /etc/rc2.d/K[0-9][0-9]miredo-server ] \
   && [ -f /etc/rc3.d/S[0-9][0-9]miredo-server ] \
   && [ -f /etc/rc4.d/S[0-9][0-9]miredo-server ] \
   && [ -f /etc/rc5.d/S[0-9][0-9]miredo-server ]
then
   update-rc.d -f miredo-server remove
fi

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