From dadaaff8e36a1052d6a019e00858760d4e709433 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Sat, 5 Aug 2006 18:05:21 +0000 Subject: An extra check on prefix to make sure it's perfect. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@304 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index fa1fc36..d2c7b2b 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -44,7 +44,7 @@ class Start < GemPlugin::Plugin "/commands" # change there to start, then we'll have to come back after daemonize Dir.chdir(@cwd) - valid? @prefix[-1].chr != "/", "Don't put / at the end of your prefix" if @prefix + valid?(@prefix[0].chr == "/" && @prefix[-1].chr != "/", "Prefix must begin with / and not end in /") if @prefix valid_dir? File.dirname(@log_file), "Path to log file not valid: #@log_file" valid_dir? File.dirname(@pid_file), "Path to pid file not valid: #@pid_file" valid_dir? @docroot, "Path to docroot not valid: #@docroot" -- cgit v1.2.3-24-ge0c7