This file is indexed.

postinst is in maas-dhcp 1.5+bzr2252-0ubuntu1.

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

set -e

if [ "$1" = "configure" ]; then
   invoke-rc.d isc-dhcp-server stop

   dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
   if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
   then
      apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
   fi
fi

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