|
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 | |
|---|
| 3 | set -e |
|---|
| 4 | |
|---|
| 5 | update_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 | |
|---|
| 12 | update_init() { |
|---|
| 13 | if [ -z "$2" ] ; then |
|---|
| 14 | update-rc.d pdns defaults 15 85 > /dev/null |
|---|
| 15 | fi |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then |
|---|
| 20 | update_docbase |
|---|
| 21 | update_init "$@" |
|---|
| 22 | ldconfig |
|---|
| 23 | fi |
|---|