Package: pdns-backend-mysql
Version: 2.9.17-13sarge1
Severity: serious

The postrm says:

PDNSCONF=/etc/powerdns/pdns.conf
PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'`
PDNSLOCAL=$PDNSDIR/pdns.local
...
case "$1" in
  remove)
      sed -i -e 's/^gmysql/# gmysql/' $PDNSLOCAL
...

My pdns.conf has no line saying include in it because when I upgraded
from the previous version, I didn't put the new config file in[*], so
PDNSLOCAL is set to "/pdns.local". So we get this:

Stopping PowerDNS authoritative nameserver: not running
sed: can't read /pdns.local: No such file or directory
dpkg: error processing pdns-backend-mysql (--remove):
 subprocess post-removal script returned error exit status 2

Bad mojo...

Regards,
Rob

*: Now I've looked, I appreciate that the include pdns.d way is
better, but when I was upgrading to sarge and answered the question
I didn't know that my existing config was already reflected in
pdns.d/pdns.local. It might've been a good idea to ship a NEWS.Debian
explaining this but it's a bit late for sarge now... :)

-- System Information:
Debian Release: 3.1
Architecture: i386 (i586)
Kernel: Linux 2.4.24-xfs-exec-shield-sky1
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages pdns-backend-mysql depends on:
ii  libc6                  2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libgcc1                1:3.4.3-13      GCC support library
ii  libmysqlclient12       4.0.24-10       mysql database client library
ii  libstdc++5             1:3.3.5-13      The GNU Standard C++ Library v3
rc  pdns-server            2.9.17-13sarge1 extremely powerful and versatile

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to