Skip to content

Commit

Permalink
Show a warning if we have no write permission to the Passenger root f…
Browse files Browse the repository at this point in the history
…older.
  • Loading branch information
FooBarWidget committed Apr 28, 2008
1 parent a08a112 commit 95fcd7a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/passenger-make-enterprisey
Expand Up @@ -56,7 +56,11 @@ else
STDERR.puts "Invalid key given. Please try again:" STDERR.puts "Invalid key given. Please try again:"
end end
end end
system("touch", "#{PASSENGER_ROOT}/enterprisey.txt") if system("touch", "#{PASSENGER_ROOT}/enterprisey.txt")
puts "Congratulations! Your Passenger Enterprise License has been activated!" puts "Congratulations! Your Passenger Enterprise License has been activated!"
puts "Please restart Apache to take full advantage of your Enterprise License." puts "Please restart Apache to take full advantage of your Enterprise License."
else
STDERR.puts "Could not write to the Passenger folder. Please run this tool as root."
exit 1
end
end end

0 comments on commit 95fcd7a

Please sign in to comment.