[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debconf and "tty"



At Wed, 08 Jan 2003 12:24:22 +0900 (JST),
Atsuhito Kohda wrote:

> After using debconf, a script (mktexlsr) in postinst
> stopped to output anything.
> 
> I'm not good at debconf nor shell script but as far as
> I examined, it seemed the line like
> 
>   tty -s && echo "$progname: Updating $db_file... "
> 
> in mktexlsr failed in "tty -s" check under
> 
>    . /usr/share/debconf/confmodule || exit
>    db_version 2.0
> 
> Is there any correct way so that mktexlsr outputs
> useful information again without any problem ?

If you don't need to use debconf further, call db_stop before mktexlsr.

Or redirect output of mktexlsr to file descript 3.

See confmodule(3) for more detail.

Regards,
Fumitoshi UKAI



Reply to: