This file is indexed.

postinst is in dpm-copy-server-mysql 1.8.7-3.

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
#!/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-mysql/dpmcopyd 20 \
  --slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \
          /usr/lib/dpm-mysql/dpmcopyd.8.gz \
  --slave /etc/init.d/dpmcopyd dpmcopyd.init \
          /etc/dpm-mysql/dpmcopyd.init \
  --slave /etc/default/dpmcopyd dpmcopyd.conf \
          /etc/dpm-mysql/dpmcopyd.conf \
  --slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \
          /etc/dpm-mysql/dpmcopyd.logrotate

if [ -x "/etc/init.d/dpmcopyd" ]; then
	update-rc.d dpmcopyd defaults >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d dpmcopyd start || exit $?
	else
		/etc/init.d/dpmcopyd start || exit $?
	fi
fi