This file is indexed.

postinst is in neutron-common 1:2014.1.3-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
25
26
27
28
29
#!/bin/sh

set -e 

if [ "$1" = "configure" ]
then
	if ! getent group neutron > /dev/null 2>&1
	then
		addgroup --system neutron >/dev/null
	fi
	if ! getent passwd neutron > /dev/null 2>&1
	then
		adduser --system --home /var/lib/neutron --ingroup neutron --no-create-home --shell /bin/false neutron
	fi
	chown -R neutron:neutron /var/lib/neutron/

	chown -R neutron:adm /var/log/neutron/ 
	chmod 0750 /var/log/neutron/

    chown -R root:neutron /etc/neutron/
    chmod 0750 /etc/neutron/
	chown root:root /etc/neutron/rootwrap.conf
	chown -R root:root /etc/neutron/rootwrap.d
	chmod 0755 /etc/neutron/rootwrap.d

	if [ -f /etc/sudoers.d/neutron_sudoers ] ; then
		chmod 0440 /etc/sudoers.d/neutron_sudoers
	fi
fi