postinst is in dpm-srm-server-mysql 1.8.10-1build3.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/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/dpm-srmv1
update-alternatives --install /usr/sbin/dpm-srmv1 dpm-srmv1 \
/usr/lib/dpm-mysql/dpm-srmv1 20 \
--slave /usr/share/man/man8/dpm-srmv1.8.gz dpm-srmv1.8.gz \
/usr/lib/dpm-mysql/dpm-srmv1.8.gz \
--slave /etc/init.d/dpm-srmv1 dpm-srmv1.init \
/etc/dpm-mysql/dpm-srmv1.init \
--slave /etc/default/dpm-srmv1 dpm-srmv1.conf \
/etc/dpm-mysql/dpm-srmv1.conf \
--slave /etc/logrotate.d/dpm-srmv1 dpm-srmv1.logrotate \
/etc/dpm-mysql/dpm-srmv1.logrotate
if [ -x "/etc/init.d/dpm-srmv1" ]; then
update-rc.d dpm-srmv1 defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d dpm-srmv1 start || exit $?
else
/etc/init.d/dpm-srmv1 start || exit $?
fi
fi
chown dpmmgr:dpmmgr /var/log/dpm-srmv2
update-alternatives --install /usr/sbin/dpm-srmv2 dpm-srmv2 \
/usr/lib/dpm-mysql/dpm-srmv2 20 \
--slave /usr/share/man/man8/dpm-srmv2.8.gz dpm-srmv2.8.gz \
/usr/lib/dpm-mysql/dpm-srmv2.8.gz \
--slave /etc/init.d/dpm-srmv2 dpm-srmv2.init \
/etc/dpm-mysql/dpm-srmv2.init \
--slave /etc/default/dpm-srmv2 dpm-srmv2.conf \
/etc/dpm-mysql/dpm-srmv2.conf \
--slave /etc/logrotate.d/dpm-srmv2 dpm-srmv2.logrotate \
/etc/dpm-mysql/dpm-srmv2.logrotate
if [ -x "/etc/init.d/dpm-srmv2" ]; then
update-rc.d dpm-srmv2 defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d dpm-srmv2 start || exit $?
else
/etc/init.d/dpm-srmv2 start || exit $?
fi
fi
chown dpmmgr:dpmmgr /var/log/dpm-srmv2.2
update-alternatives --install /usr/sbin/dpm-srmv2.2 dpm-srmv2.2 \
/usr/lib/dpm-mysql/dpm-srmv2.2 20 \
--slave /usr/share/man/man8/dpm-srmv2.2.8.gz dpm-srmv2.2.8.gz \
/usr/lib/dpm-mysql/dpm-srmv2.2.8.gz \
--slave /etc/init.d/dpm-srmv2.2 dpm-srmv2.2.init \
/etc/dpm-mysql/dpm-srmv2.2.init \
--slave /etc/default/dpm-srmv2.2 dpm-srmv2.2.conf \
/etc/dpm-mysql/dpm-srmv2.2.conf \
--slave /etc/logrotate.d/dpm-srmv2.2 dpm-srmv2.2.logrotate \
/etc/dpm-mysql/dpm-srmv2.2.logrotate
if [ -x "/etc/init.d/dpm-srmv2.2" ]; then
update-rc.d dpm-srmv2.2 defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d dpm-srmv2.2 start || exit $?
else
/etc/init.d/dpm-srmv2.2 start || exit $?
fi
fi
|