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 !
Set $PATH before loading PlatformInfo so that autodetecting sbin binaries 
actually works.
Hongli Lai (Phusion) (author)
Sun Mar 30 13:26:12 -0700 2008
commit  12dae54d8f498d6f9a2772719ca18baaff79e75c
tree    a470104b130fdc173782d291bd46a57fe9fa8bde
parent  b2603019217089c4f528cd148d38ee4ccf5b56f3
...
1
2
3
 
 
 
 
 
 
 
4
5
6
...
25
26
27
28
29
30
31
32
33
34
35
36
...
1
2
3
4
5
6
7
8
9
10
11
12
13
...
32
33
34
 
 
 
 
 
 
35
36
37
0
@@ -1,6 +1,13 @@
0
 #!/usr/bin/env ruby
0
 PASSENGER_ROOT = File.expand_path(File.dirname(__FILE__) << "/..")
0
 $LOAD_PATH.unshift("#{PASSENGER_ROOT}/lib")
0
+
0
+# The Apache executable may be located in an 'sbin' folder. We add
0
+# the 'sbin' folders to $PATH just in case. On some systems
0
+# 'sbin' isn't in $PATH unless the user is logged in as root from
0
+# the start (i.e. not via 'su' or 'sudo').
0
+ENV["PATH"] += ":/usr/sbin:/sbin:/usr/local/sbin"
0
+
0
 require 'passenger/platform_info'
0
 require 'passenger/dependencies'
0
 require 'passenger/console_text_template'
0
@@ -25,12 +32,6 @@ class Installer
0
   
0
   def start
0
     Dir.chdir(PASSENGER_ROOT)
0
- # The Apache executable may be located in an 'sbin' folder. We add
0
- # the 'sbin' folders to $PATH just in case. On some systems
0
- # 'sbin' isn't in $PATH unless the user is logged in as root from
0
- # the start (i.e. not via 'su' or 'sudo').
0
- ENV["PATH"] += ":/usr/sbin:/sbin:/usr/local/sbin"
0
-
0
     show_welcome_screen
0
     check_dependencies || exit(1)
0
     warn_about_broken_apache_on_osx

Comments

    No one has commented yet.