File: dpm-copy-server-postgres.preinst

package info (click to toggle)
lcgdm 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,532 kB
  • sloc: ansic: 226,887; sh: 13,562; perl: 11,575; python: 11,572; cpp: 5,716; sql: 1,824; makefile: 1,301; fortran: 113
file content (18 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

# Version 1.10.0 starts using defaults-disabled
# Remove rc.d links if upgrading from an older version and the service is
# disabled in /etc/default

if [ -n "$2" ] ; then
	if dpkg --compare-versions "$2" "<<" "1.10.0" ; then
		[ -r /etc/default/dpmcopyd ] && . /etc/default/dpmcopyd
		if [ "${RUN_DPMCOPYDAEMON}" != "yes" ] ; then
			update-rc.d -f dpmcopyd remove >/dev/null
		fi
	fi
fi

#DEBHELPER#