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 21 end
22 22  
23 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 25 if File.exists?(GIT_HOST['base_path'])
26 26 puts "exists".green
27 27 else
... ... @@ -29,7 +29,7 @@ namespace :gitlab do
29 29 return
30 30 end
31 31  
32   - print "/home/git/repositories/ is writable?............"
  32 + print "#{GIT_HOST['base_path']} is writable?............"
33 33 if File.stat(GIT_HOST['base_path']).writable?
34 34 puts "YES".green
35 35 else
... ...