This file is indexed.

postinst is in heat-common 1:10.0.0-0ubuntu1.1.

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

set -e

if [ "$1" = "configure" ] ; then
    if ! getent group heat > /dev/null 2>&1; then
        addgroup --system heat >/dev/null
    fi
    if ! getent passwd heat > /dev/null 2>&1; then
        adduser --system --home /var/lib/heat --ingroup heat --no-create-home \
            --shell /bin/false heat
    fi
	chown -R heat:adm /var/log/heat
	mkdir -p /etc/heat
	chmod 0750 /var/log/heat
	chmod 0750 /etc/heat
	mkdir -p /var/lib/heat
	chown heat:heat -R /var/lib/heat
	chown root:heat -R /etc/heat
fi



exit 0