This file is indexed.

postinst is in glance-common 2012.1.3+stable~20120821-120fcf-0ubuntu1.5.

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

set -e

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