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