#!/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
