Commit 3a4aff6934a69917b430f15201a6b1218fd51203

Authored by Dmitriy Zaporozhets
2 parents 335f9d64 4a40f650

Merge pull request #973 from denispeplin/master

/home/git/repositories is hardcoded in rake task, replace it
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/tasks/gitlab/status.rake
@@ -21,7 +21,7 @@ namespace :gitlab do @@ -21,7 +21,7 @@ namespace :gitlab do
21 end 21 end
22 22
23 GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"] 23 GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"]
24 - print "/home/git/repositories/............" 24 + print "#{GIT_HOST['base_path']}............"
25 if File.exists?(GIT_HOST['base_path']) 25 if File.exists?(GIT_HOST['base_path'])
26 puts "exists".green 26 puts "exists".green
27 else 27 else
@@ -29,7 +29,7 @@ namespace :gitlab do @@ -29,7 +29,7 @@ namespace :gitlab do
29 return 29 return
30 end 30 end
31 31
32 - print "/home/git/repositories/ is writable?............" 32 + print "#{GIT_HOST['base_path']} is writable?............"
33 if File.stat(GIT_HOST['base_path']).writable? 33 if File.stat(GIT_HOST['base_path']).writable?
34 puts "YES".green 34 puts "YES".green
35 else 35 else