postinst is in ironic-common 1:10.1.1-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 20 21 22 | #!/bin/sh -e
if [ "$1" = "configure" ] ; then
if ! getent group ironic > /dev/null 2>&1; then
addgroup --system ironic >/dev/null
fi
if ! getent passwd ironic > /dev/null 2>&1; then
adduser --system --home /var/lib/ironic --ingroup ironic --no-create-home --shell /bin/false ironic
fi
chown -R ironic:adm /var/log/ironic
chmod 0750 /var/log/ironic
mkdir -p /etc/ironic
mkdir -p /var/lib/ironic
chown ironic:ironic -R /var/lib/ironic /etc/ironic
default_db=/var/lib/ironic/ironic.db
fi
exit 0
|