We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Remove write access check to Apache modules dir. We don't write to that 
folder anymore.
Hongli Lai (Phusion (author)
Sat Apr 19 09:31:14 -0700 2008
commit  d7908621e1785d6032c466a84181b7f7931dd83a
tree    fe38ae73ff586118b36c9145e9dba4dda02190fe
parent  3ae8f88a27e9686fc52177e167503b60ac81cc8e
...
55
56
57
58
59
60
61
...
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
...
55
56
57
 
58
59
60
...
171
172
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
175
176
0
@@ -55,7 +55,6 @@ class Installer
0
     warn_about_broken_apache_on_osx
0
     check_whether_apache_uses_prefork_mpm
0
     check_write_permission_to_passenger_root || exit(1)
0
- check_write_permission_to_apache_modules_dir || exit(1)
0
     if install_apache2_module
0
       show_apache2_config_snippets
0
       show_deployment_example
0
@@ -172,27 +171,6 @@ private
0
     File.unlink("__test__.txt") rescue nil
0
   end
0
   
0
- def check_write_permission_to_apache_modules_dir
0
- install_dir = `#{APXS2} -q LIBEXECDIR`.strip
0
- begin
0
- File.new("#{install_dir}/__test__.txt", "w").close
0
- return true
0
- rescue
0
- puts
0
- line
0
- if Process.uid == 0
0
- render_template 'no_write_permission_to_passenger_root',
0
- :path => install_dir
0
- else
0
- render_template 'run_installer_as_root',
0
- :path => install_dir
0
- end
0
- return false
0
- ensure
0
- File.unlink("#{install_dir}/__test__.txt") rescue nil
0
- end
0
- end
0
-
0
   def install_apache2_module
0
     puts
0
     line

Comments

    No one has commented yet.