postinst is in dpm-copy-server-postgres 1.10.0-2.
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 30 31 | #!/bin/sh
set -e
getent group dpmmgr > /dev/null || \
addgroup --quiet --system dpmmgr
getent passwd dpmmgr > /dev/null || \
adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \
--ingroup dpmmgr --disabled-password --disabled-login \
--gecos "DPM manager" dpmmgr
chown dpmmgr:dpmmgr /var/log/dpmcopy
update-alternatives --install /usr/sbin/dpmcopyd dpmcopyd \
/usr/lib/dpm-postgres/dpmcopyd 10 \
--slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \
/usr/lib/dpm-postgres/dpmcopyd.8.gz \
--slave /etc/init.d/dpmcopyd dpmcopyd.init \
/etc/dpm-postgres/dpmcopyd.init \
--slave /etc/default/dpmcopyd dpmcopyd.conf \
/etc/dpm-postgres/dpmcopyd.conf \
--slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \
/etc/dpm-postgres/dpmcopyd.logrotate
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.d/dpmcopyd" ]; then
update-rc.d dpmcopyd defaults-disabled >/dev/null
invoke-rc.d dpmcopyd start || exit 1
fi
fi
|