about summary refs log tree commit homepage
path: root/bin/mongrel_rails
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mongrel_rails')
-rw-r--r--bin/mongrel_rails27
1 files changed, 5 insertions, 22 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index 4886e6e..38ec96c 100644
--- a/bin/mongrel_rails
+++ b/bin/mongrel_rails
@@ -56,31 +56,14 @@ class Start < GemPlugin::Plugin "/commands"
     valid_dir? File.dirname(@generate), "Problem accessing directory to #@generate" if @generate
     valid_user? @user if @user
     valid_group? @group if @group
-    
-    return @valid
-  end
-  
-  def valid_user?(user)
-    valid?(Process.uid == 0, "You must be root to change the user.")
-    valid?(@group, "You must also specify a group.")
-    begin
-      Etc.getpwnam(user)
-    rescue
-      failure "User does not exist: #{user}"
-      @valid = false
+
+    if ActionController::Base.allow_concurrency
+      STDERR.puts "[RAILS] allow_concurrency is true.  Wow, you're very brave."
     end
+
+    return @valid
   end
   
-  def valid_group?(group)
-    valid?(Process.uid == 0, "You must be root to change the group.")
-    valid?(@user, "You must also specify a user.")
-    begin
-      Etc.getgrnam(group)
-    rescue
-      failure "Group does not exist: #{group}"
-      @valid = false
-    end
-  end
   
   def run