postinst is in glance-common 2:16.0.0-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 26 27 28 29 | #!/bin/sh
set -e
GLANCE_UID=64062
GLANCE_GID=64062
if [ "$1" = "configure" ]
then
if ! getent group glance > /dev/null 2>&1
then
addgroup --quiet --system \
--gid $GLANCE_GID glance 2>/dev/null
fi
if ! getent passwd glance > /dev/null 2>&1
then
adduser --quiet --system \
--home /var/lib/glance \
--no-create-home \
--uid $GLANCE_UID \
--gid $GLANCE_GID \
--shell /bin/false glance 2>/dev/null
fi
chown -R glance:adm /var/log/glance
chmod 0750 /var/log/glance
chown root:glance -R /etc/glance
chmod 0750 /etc/glance
find /var/lib/glance -xdev -type d -exec chown glance:glance {} \;
fi
|