This file is indexed.

postinst is in quagga 0.99.20.1-0ubuntu0.12.04.6.

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

if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}


if [ "$1" = "configure" ]; then
    # Fix permissions for installed elements.
    find /etc/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 640 {}'
    find /var/log/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 640 {}'
    find /var/run/quagga -type f -print0 | xargs -0 -I{} sh -c 'chown quagga:quagga {} ; chmod 600 {}'
fi

# This is most likely due to the answer "no" to the "really stop the server"
# question in the prerm script.
if [ "$1" = "abort-upgrade" ]; then
  exit 0
fi

. /usr/share/debconf/confmodule

db_stop

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