File: libldap2.postinst

package info (click to toggle)
openldap2 2.0.23-6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,816 kB
  • ctags: 6,366
  • sloc: ansic: 86,391; sh: 9,816; makefile: 1,270; cpp: 1,107; sql: 838; php: 700; perl: 134; tcl: 40
file content (25 lines) | stat: -rw-r--r-- 349 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
#!/bin/sh

pkg=libpdap2

set -e

update_ldconfig() {
	if [ -x /sbin/ldconfig ] ; then
		ldconfig
	fi
}

update_doclink() {
	if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ] ; then
		ln -s ../share/doc/$pkg /usr/doc/$pkg
	fi
}

if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
	update_ldconfig
	update_doclink
fi

exit 0