Permalink
Browse files

Remove write access check to Apache modules dir. We don't write to th…

…at folder anymore.
  • Loading branch information...
1 parent 3ae8f88 commit d7908621e1785d6032c466a84181b7f7931dd83a @FooBarWidget FooBarWidget committed with FooBarWidget Apr 19, 2008
Showing with 0 additions and 22 deletions.
  1. +0 −22 bin/passenger-install-apache2-module
@@ -55,7 +55,6 @@ class Installer
warn_about_broken_apache_on_osx
check_whether_apache_uses_prefork_mpm
check_write_permission_to_passenger_root || exit(1)
- check_write_permission_to_apache_modules_dir || exit(1)
if install_apache2_module
show_apache2_config_snippets
show_deployment_example
@@ -172,27 +171,6 @@ private
File.unlink("__test__.txt") rescue nil
end
- def check_write_permission_to_apache_modules_dir
- install_dir = `#{APXS2} -q LIBEXECDIR`.strip
- begin
- File.new("#{install_dir}/__test__.txt", "w").close
- return true
- rescue
- puts
- line
- if Process.uid == 0
- render_template 'no_write_permission_to_passenger_root',
- :path => install_dir
- else
- render_template 'run_installer_as_root',
- :path => install_dir
- end
- return false
- ensure
- File.unlink("#{install_dir}/__test__.txt") rescue nil
- end
- end
-
def install_apache2_module
puts
line

0 comments on commit d790862

Please sign in to comment.