File: postinst

package info (click to toggle)
rpcbind 0.2.1-6%2Bdeb8u2
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 884 kB
  • ctags: 541
  • sloc: ansic: 5,314; sh: 1,180; makefile: 102
file content (18 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = configure ] ; then
	# /run transition (see #633035)
	if dpkg --compare-versions "$2" lt "0.2.0-7"; then
		if [ -f /lib/init/rw/sendsigs.omit.d/rpcbind ]; then
			mv /lib/init/rw/sendsigs.omit.d/rpcbind /run/rpcbind.pid
			ln -s /run/rpcbind.pid /run/sendsigs.omit.d/rpcbind
		fi
	fi
	if dpkg --compare-versions "$2" lt "0.2.0-8.1"; then
		update-rc.d -f rpcbind remove
	fi
fi

#DEBHELPER#