Commit ece30f53ee997ba6eb4d0205a82ba204e3a901e3
Exists in
master
and in
4 other branches
Merge branch 'stable'
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
lib/tasks/gitlab/check.rake
| @@ -53,14 +53,14 @@ namespace :gitlab do | @@ -53,14 +53,14 @@ namespace :gitlab do | ||
| 53 | end | 53 | end |
| 54 | 54 | ||
| 55 | def check_database_is_not_sqlite | 55 | def check_database_is_not_sqlite |
| 56 | - print "Database is not SQLite ... " | 56 | + print "Database is SQLite ... " |
| 57 | 57 | ||
| 58 | database_config_file = Rails.root.join("config", "database.yml") | 58 | database_config_file = Rails.root.join("config", "database.yml") |
| 59 | 59 | ||
| 60 | unless File.read(database_config_file) =~ /sqlite/ | 60 | unless File.read(database_config_file) =~ /sqlite/ |
| 61 | - puts "yes".green | 61 | + puts "no".green |
| 62 | else | 62 | else |
| 63 | - puts "no".red | 63 | + puts "yes".red |
| 64 | for_more_information( | 64 | for_more_information( |
| 65 | "https://github.com/gitlabhq/gitlabhq/wiki/Migrate-from-SQLite-to-MySQL", | 65 | "https://github.com/gitlabhq/gitlabhq/wiki/Migrate-from-SQLite-to-MySQL", |
| 66 | see_database_guide | 66 | see_database_guide |
| @@ -189,6 +189,8 @@ namespace :gitlab do | @@ -189,6 +189,8 @@ namespace :gitlab do | ||
| 189 | 189 | ||
| 190 | if project.satellite.exists? | 190 | if project.satellite.exists? |
| 191 | puts "yes".green | 191 | puts "yes".green |
| 192 | + elsif project.empty_repo? | ||
| 193 | + puts "can't create, repository is empty".magenta | ||
| 192 | else | 194 | else |
| 193 | puts "no".red | 195 | puts "no".red |
| 194 | try_fixing_it( | 196 | try_fixing_it( |
| @@ -503,7 +505,6 @@ namespace :gitlab do | @@ -503,7 +505,6 @@ namespace :gitlab do | ||
| 503 | puts "yes".green | 505 | puts "yes".green |
| 504 | else | 506 | else |
| 505 | puts "no".red | 507 | puts "no".red |
| 506 | - puts "#{gitolite_config_path} is not writable".red | ||
| 507 | try_fixing_it( | 508 | try_fixing_it( |
| 508 | "sudo chmod 750 #{gitolite_config_path}" | 509 | "sudo chmod 750 #{gitolite_config_path}" |
| 509 | ) | 510 | ) |