root/trunk/pdns/debian/postinst @ 46

Revision 46, 339 bytes (checked in by ahu, 10 years ago)

debian

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to author date id revision
Line 
1#!/bin/sh
2
3set -e
4
5update_docbase() {
6        if command -v install-docs >/dev/null 2>&1 ; then
7                install-docs -i /usr/share/doc-base/pdns
8        fi
9}
10
11
12update_init() {
13        if [ -z "$2" ] ; then
14                update-rc.d pdns defaults 15 85 > /dev/null
15        fi
16}
17
18
19if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
20        update_docbase
21        update_init "$@"
22        ldconfig
23fi
Note: See TracBrowser for help on using the browser.