debconf causes hang
Hi,
I am having a problem using debconf in my postinst:
#! /bin/sh
set -e
. /usr/share/debconf/confmodule
case "$1" in
configure)
db_get qmail-scanner/admin
ADMIN="$RET"
db_get qmail-scanner/domain
DOMAIN="$RET"
db_get qmail-scanner/notify
NOTIFY="$RET"
db_stop
cd /usr/lib/qmail-scanner/
./configure --admin $ADMIN --domain $DOMAIN --bindir /usr/sbin --notify $NOTIFY --install
The problem is that when it gets to the above configure line (which expects user input), it just hangs whereas
if I run it from the command line it works fine.
Am i doing something wrong?
thanks, Iain.
Reply to: