File: pdns-backend-pgsql.postinst

package info (click to toggle)
pdns 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,824 kB
  • sloc: cpp: 101,240; sh: 5,616; makefile: 2,318; sql: 860; ansic: 675; python: 635; yacc: 245; perl: 161; lex: 131
file content (25 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
set -e

if [ -n "$PDNSDEBUG" ]; then
  echo "now debugging $0 $@"
  set -x
fi

PKGNAME="pdns-backend-pgsql"

# Remove files previously registered with ucf (but keep the files).
# 4.1.3-4 and newer no longer install a (ucf) conffile.
# We stopped depending on ucf, so avoid calling ucf when it is not present.
if command -v ucfq >/dev/null; then
  for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
    ucf --purge ${file}
    ucfr --purge $PKGNAME ${file}
  done
fi

dpkg-trigger pdns-server

#DEBHELPER#

exit 0