File: postinst

package info (click to toggle)
rpcbind 0.2.0-8%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,840 kB
  • sloc: sh: 9,229; ansic: 5,283; makefile: 91
file content (15 lines) | stat: -rw-r--r-- 330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
fi

#DEBHELPER#