Permalink
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...
1 parent 7ad4a45 commit 5920c141937421cf05f0ccb98a019b52df4a788e @FooBarWidget FooBarWidget committed Jan 29, 2014
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
@@ -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

0 comments on commit 5920c14

Please sign in to comment.