public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Show a warning if we have no write permission to the Passenger root 
folder.
Hongli Lai (Phusion) (author)
Mon Apr 28 10:09:22 -0700 2008
commit  95fcd7a4c62d31cbba6e20b2ecd31ce5451f7eff
tree    b7d0511224b8b27e4f5e8e19c0c27ca23bcfe21a
parent  a08a112827dc9add54b11f689e94807998a4845d
...
56
57
58
59
60
61
 
 
 
 
 
 
 
62
...
56
57
58
 
 
 
59
60
61
62
63
64
65
66
0
@@ -56,8 +56,12 @@
0
       STDERR.puts "Invalid key given. Please try again:"
0
     end
0
   end
0
- system("touch", "#{PASSENGER_ROOT}/enterprisey.txt")
0
- puts "Congratulations! Your Passenger Enterprise License has been activated!"
0
- puts "Please restart Apache to take full advantage of your Enterprise License."
0
+ if system("touch", "#{PASSENGER_ROOT}/enterprisey.txt")
0
+ puts "Congratulations! Your Passenger Enterprise License has been activated!"
0
+ puts "Please restart Apache to take full advantage of your Enterprise License."
0
+ else
0
+ STDERR.puts "Could not write to the Passenger folder. Please run this tool as root."
0
+ exit 1
0
+ end
0
 end

Comments

    No one has commented yet.