postinst is in glance-common 2:12.0.0-0ubuntu2.
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 /etc/glance
find /var/lib/glance -xdev -type d -exec chown glance:glance {} \;
fi
|