Permalink
Browse files

Show a warning if we have no write permission to the Passenger root f…

…older.
  • Loading branch information...
1 parent a08a112 commit 95fcd7a4c62d31cbba6e20b2ecd31ce5451f7eff @FooBarWidget FooBarWidget committed Apr 28, 2008
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/passenger-make-enterprisey
@@ -56,7 +56,11 @@ else
STDERR.puts "Invalid key given. Please try again:"
end
end
- system("touch", "#{PASSENGER_ROOT}/enterprisey.txt")
- puts "Congratulations! Your Passenger Enterprise License has been activated!"
- puts "Please restart Apache to take full advantage of your Enterprise License."
+ if system("touch", "#{PASSENGER_ROOT}/enterprisey.txt")
+ puts "Congratulations! Your Passenger Enterprise License has been activated!"
+ 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

0 comments on commit 95fcd7a

Please sign in to comment.