root/trunk/pdns/debian/postinst @ 48

Revision 48, 429 bytes (checked in by ahu, 10 years ago)

juh

  • 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
19update_pdns() {
20        if [ -n "$2" ] ; then
21                /etc/init.d/pdns start
22        fi
23}
24
25if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
26        update_docbase
27        update_init "$@"
28        restart_pdns "$@"
29        ldconfig
30fi
Note: See TracBrowser for help on using the browser.