Bug#207453: apache: apache.postinst: line 189: /dev/tty: No such device or address
tags 207453 patch
quit
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.
--
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: