File: libdspam7-drv-pgsql.postinst

package info (click to toggle)
dspam 3.6.8-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,372 kB
  • ctags: 1,457
  • sloc: ansic: 24,738; sh: 9,860; perl: 2,378; makefile: 546; sql: 327
file content (35 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
#!/bin/sh
#
# Post installation for the PostgreSQL backend.

set -e

# Load debconf
. /usr/share/debconf/confmodule

# Set some variables
dbc_generate_include=template:/etc/dspam/dspam.d/pgsql.conf
dbc_generate_include_owner="dspam"
dbc_generate_include_perms="640"
dbc_generate_include_args="-U -o template_infile='/usr/share/doc/libdspam7-drv-pgsql/pgsql.conf'"

# Load dbconfig (pgsql part)
. /usr/share/dbconfig-common/dpkg/postinst.pgsql

# Run dbconfig
dbc_go libdspam7-drv-pgsql $@

case "$1" in
  configure)
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
  ;;
esac

#DEBHELPER#

exit 0