lib/rconf/configurators/passenger_configurator.rb in rconf-0.8.8 vs lib/rconf/configurators/passenger_configurator.rb in rconf-0.8.9

- old
+ new

@@ -149,14 +149,11 @@ ruby_dir = File.dirname(`which ruby`.chomp) FileUtils.cp(`which rake`.chomp, ruby_dir) unless rake_exist = File.exist?(File.join(ruby_dir, 'rake')) Command.execute_in_ruby('passenger-install-nginx-module', '--auto', '--auto-download', '--prefix', install_path, :abort_on_failure => "Failed to install nginx into #{install_path}") - FileUtils.mkdir_p(File.join(install_path, 'sites-enabled')) FileUtils.mkdir_p(File.join(install_path, 'logs')) File.open(File.join(install_path, 'conf', 'nginx.conf'), 'w') { |f| f.puts(nginx_config) } - File.open(File.join(install_path, 'sites-enabled', 'right_site'), 'w') { |f| f.puts(right_site_config) } - File.open(File.join(install_path, 'sites-enabled', 'library'), 'w') { |f| f.puts(library_config) } if File.writable?('/etc/hosts') && IO.read('/etc/hosts') !~ /hosts_entry/ File.open('/etc/hosts', 'a') { |f| f.puts hosts_entry } else post_note "Please add the following line to your /etc/hosts file:\n#{hosts_entry}\n" + "\nThe following aliases may help too:\n" +