Make SQLite check in gitlab:check more robust

This commit is contained in:
Riyad Preukschas 2012-12-24 15:52:49 +01:00
parent 0e15270b75
commit 8ef7b9b6d1

View 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