File: pdns-backend-pgsql.postinst

package info (click to toggle)
pdns 3.1-4.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,356 kB
  • sloc: cpp: 42,003; ansic: 22,326; sh: 18,273; sql: 618; makefile: 590; yacc: 222; lex: 133; perl: 52
file content (27 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# postinst script for pdns-backend-pgsql

set -e

# Execute dbconfig-common
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.pgsql
dbc_first_version="3.0-1"
dbc_pgsql_createdb_encoding="UTF8"
dbc_generate_include_args="-o template_infile=/usr/share/doc/pdns-backend-pgsql/examples/pdns.local.gpgsql"
dbc_generate_include=template:/etc/powerdns/pdns.d/pdns.local.gpgsql
dbc_generate_include_owner=pdns
dbc_generate_include_perms=0640
dbc_go pdns-backend-pgsql $@

# Activate trigger
dpkg-trigger pdns-server

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0