Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Automatically run passenger-install-apache2-module and passenger-inst…

…all-nginx-module in `--auto` mode if stdin is not a TTY.

Fixes issue #1030.
  • Loading branch information...
commit 5920c141937421cf05f0ccb98a019b52df4a788e 1 parent 7ad4a45
@FooBarWidget FooBarWidget authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  NEWS
  2. +1 −0  lib/phusion_passenger/abstract_installer.rb
View
3  NEWS
@@ -15,6 +15,9 @@ Release 4.0.38
(albeit smaller) small attack time window in between two filesystem
checks. This attack window is now gone.
* Fixed some compilation problems on Solaris. See issue #1047.
+ * passenger-install-apache2-module and passenger-install-nginx-module
+ now automatically run in `--auto` mode if stdin is not a TTY. Fixes
+ issue #1030.
Release 4.0.37
View
1  lib/phusion_passenger/abstract_installer.rb
@@ -59,6 +59,7 @@ class AbstractInstaller
def initialize(options = {})
@stdout = STDOUT
@stderr = STDERR
+ @auto = !STDIN.tty?
options.each_pair do |key, value|
instance_variable_set(:"@#{key}", value)
end
Please sign in to comment.
Something went wrong with that request. Please try again.