File: dpm-postgres-copyd.postinst

package info (click to toggle)
dpm-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,788 kB
  • ctags: 10,782
  • sloc: ansic: 146,136; sh: 13,362; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 955; fortran: 113
file content (27 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
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
#!/bin/sh

set -e

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 [ -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

#DEBHELPER#