Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…older.
  • Loading branch information...
commit 95fcd7a4c62d31cbba6e20b2ecd31ce5451f7eff 1 parent a08a112
@FooBarWidget FooBarWidget authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/passenger-make-enterprisey
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.