File: postinst

package info (click to toggle)
sysadmin-guide 0.7-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 776 kB
  • ctags: 14
  • sloc: makefile: 76; sh: 22
file content (19 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -e

pkg=sysadmin-guide

[ -x /usr/sbin/install-docs ] || exit 0

if [ "$1" = "configure" ]
then
	if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ]
	then
		ln -sf ../share/doc/$pkg /usr/doc/$pkg
	fi
fi

if command -v install-docs >/dev/null 2>&1; then
	install-docs -i /usr/share/doc-base/sysadmin-guide
fi