Re: Bug#207453: apache: apache.postinst: line 189: /dev/tty: No such device or address
tag 207453 - patch
tag 207453 + pending
stop
quit
The patch does not fix the problem as you think because apacheconfig must
run. Anyway i have fix done in CVS.
Thanks
Fabio
On Sun, 31 Aug 2003, Andrew Shugg wrote:
>
> Trivial patch to fix this:
>
> --- /usr/share/apache/postinst.common.orig 2003-06-26 22:18:01.000000000 +0800
> +++ /usr/share/apache/postinst.common 2003-08-31 21:52:08.000000000 +0800
> @@ -156,7 +156,7 @@
> shift
> if grep -q assert-perl $apacheconfig \
> && $apacheconfig --assert-perl > /dev/null 2>&1; then
> - if ! $apacheconfig "$@"< /dev/tty > /dev/tty; then
> + if test -t && ! $apacheconfig "$@"< /dev/tty > /dev/tty; then
> # FIXME
> # debconf note
> # echo
>
>
> Andrew.
>
>
--
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues
http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html
Reply to: