File: dpm-postgres.prerm

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 (16 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

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

if [ "$1" = "remove" ] ; then
	update-alternatives --remove dpm /usr/lib/dpm-postgres/dpm
fi

#DEBHELPER#