The postinst script used to do a "grep include" on pdns.conf, which
in older versions would work (mostly), because the default config
only had a single "include=" entry. Now this is no longer true,
so remove that. Also, changing the include directory would have
never worked.
Git-Dch: full
Closes: #798773
PDNSCONF=/etc/powerdns/pdns.conf
PDNSDEFAULT=/etc/default/pdns
-if [ -e $PDNSCONF ]; then
- PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'`
-fi
-if [ -z "$PDNSDIR" ]; then
- PDNSDIR=/etc/powerdns/pdns.d
-fi
+PDNSDIR=/etc/powerdns/pdns.d
PDNSLOCAL=$PDNSDIR/pdns.local.conf
# Temporary files
[ -d $PDNSDIR ] && chmod 0755 $PDNSDIR
[ -e $PDNSDEFAULT ] && chmod 0644 $PDNSDEFAULT
fi
-
+
# If we still have the default config, make sure bindbackend.conf exists
PDNSBIND="/etc/powerdns/pdns.d/pdns.simplebind.conf"
PDNSBINDBACKENDCONF="/etc/powerdns/bindbackend.conf"