OSDN Git Service

Make SQLite check in gitlab:check more robust
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 24 Dec 2012 14:52:49 +0000 (15:52 +0100)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Mon, 24 Dec 2012 15:45:10 +0000 (16:45 +0100)
lib/tasks/gitlab/check.rake

index f052de7..5f1ed08 100644 (file)
@@ -57,7 +57,7 @@ namespace :gitlab do
 
       database_config_file = Rails.root.join("config", "database.yml")
 
-      unless File.read(database_config_file) =~ /sqlite/
+      unless File.read(database_config_file) =~ /adapter:\s+sqlite/
         puts "no".green
       else
         puts "yes".red