Bug#207453: apache: apache.postinst: line 189: /dev/tty: No such device or address
Emanuele Rocca said:
> The interruption of the script is due to a piece of code which actually
> does nothig:
>
> if ! $apacheconfig "$@"< /dev/tty > /dev/tty; then
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> # FIXME
> # debconf note
> # echo
> # echo -n "Configuration failed!
> # "
> # echo "Run \"apache-sslconfig\" to try this again later."
> # echo
> true
> fi
Hmm. That could possibly be fixed by testing to see if a terminal is
actually in use. For example, changing that "if ! $apacheconfig" line
to the following:
if test -t && ! $apacheconfig "$@"< /dev/tty > /dev/tty; then
I'll write a patch ...
Andrew.
--
Andrew Shugg <andrew@neep.com.au> http://www.neep.com.au/
"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there? Well I'd like to meet him. I could do with a good laugh."
Reply to: