Hi,

the PowerDNS packages have shipped configuration in
/etc/powerdns/pdns.d/foo, with the pdns.d functionality patched in by
Debian. Upstream has recently followed our wishlist request to
implement include-dir functionality in PowerDNS proper.

However, they require all files in an include-dir directory to be
named foo.conf, which we did not do in the past. The PowerDNS packages
use ucf to manage their conffiles, and we thus need to rename them.

Is this really as easy as

if [ -e /etc/powerdns/pdns.d/pdns.local ]; then
  if [ -e /etc/powerdns/pdns.d/pdns.local.conf ]; then
    *bomb out*
    exit 1
  fi
  ucfr --purge pdns-server /etc/powerdns/pdns.d/pdns.local
  mv /etc/powerdns/pdns.d/pdns.local /etc/powerdns/pdns.d/pdns.local.conf
  ucf /usr/share/powerdns/pdns.local.conf /etc/powerdns/pdns.d/pdns.local.conf
  ucfr pdns-server /etc/powerdns/pdns.d/pdns.local.conf
fi

or will this break in some situations?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130702194211.gc3...@torres.zugschlus.de

Reply via email to