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
|
#!/bin/sh
set -e
if [ -n "$PDNSDEBUG" ]; then
echo "now debugging $0 $@"
set -x
fi
PKGNAME="pdns-backend-sqlite3"
# 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
case "$1" in
configure)
# default path for database files.
chown pdns:pdns /var/lib/powerdns || :
;;
esac
dpkg-trigger pdns-server
#DEBHELPER#
exit 0
|