Commit 4a40f65090fdb6044c106207123a80110e133f99
1 parent
6d92aa6d
Exists in
master
and in
4 other branches
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 | 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 | ... | ... |