Comment 1 for bug 195509

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Confirmed on hardy:

root@kontiki:~# sudo vim /var/lib/dpkg/info/pdns-server.postinst
# add -x to the #!/bin/sh line
root@kontiki:~# dpkg --configure pdns-server
Setting up pdns-server (2.9.21-5) ...
+ set -e
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/pdns-server.postinst configure
+ set -e
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ PDNSCONF=/etc/powerdns/pdns.conf
+ PDNSDEFAULT=/etc/default/pdns
+ [ -e /etc/powerdns/pdns.conf ]
+ [ -z ]
+ PDNSDIR=/etc/powerdns/pdns.d
+ PDNSLOCAL=/etc/powerdns/pdns.d/pdns.local
+ mktemp
+ PDNSCONFTEMP=/tmp/tmp.WFsxCq6792
+ mktemp
+ PDNSLOCALTEMP=/tmp/tmp.mHkvGR6793
+ mktemp
+ PDNSDEFAULTTEMP=/tmp/tmp.hxHFkn6794
+ getent group pdns
+ [ -z pdns:x:130: ]
+ getent passwd pdns
+ [ -z pdns:x:116:130:PowerDNS,,,:/var/spool/powerdns:/bin/false ]
+ cat /usr/share/pdns-server/pdns.conf
+ cat /usr/share/pdns-server/pdns.local
+ cat /usr/share/pdns-server/pdns
+ splitconfig
+ [ -e /etc/powerdns/pdns.conf ]
+ db_get pdns-server/localaddress
+ _db_cmd GET pdns-server/localaddress
+ IFS= printf %s\n GET pdns-server/localaddress
+ IFS=
 read -r _db_internal_line
+ RET=
+ return 0
+ [ ! -z ]
+ db_get pdns-server/allowrecursion
+ _db_cmd GET pdns-server/allowrecursion
+ IFS= printf %s\n GET pdns-server/allowrecursion
+ IFS=
 read -r _db_internal_line
+ RET=127.0.0.1
+ return 0
+ [ ! -z 127.0.0.1 ]
+ sed -i -e s|^\(#\)\?\(# \)\?allow-recursion=.*$|allow-recursion=127.0.0.1| /tmp/tmp.WFsxCq6792
+ db_get pdns-server/autostart
+ _db_cmd GET pdns-server/autostart
+ IFS= printf %s\n GET pdns-server/autostart
+ IFS=
 read -r _db_internal_line
+ RET=true
+ return 0
+ [ -z true ]
+ [ true = true ]
+ sed -i -e s/^START=.*$/START=yes/ /tmp/tmp.hxHFkn6794
+ db_stop
+ echo STOP
+ ucf /tmp/tmp.WFsxCq6792 /etc/powerdns/pdns.conf
# freezes here
# ctl-c
dpkg: error processing pdns-server (--configure):
 subprocess post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
 pdns-server
root@kontiki:~#
root@kontiki:~# ucf /tmp/tmp.WFsxCq6792 /etc/powerdns/pdns.conf

Creating config file /etc/powerdns/pdns.conf with new version
root@kontiki:~#