Commit 4a40f65090fdb6044c106207123a80110e133f99

Authored by Denis Peplin
1 parent 6d92aa6d

Replace hardcoded '/home/git/repositories/' with GIT_HOST['base_path']

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