Replace hardcoded '/home/git/repositories/' with GIT_HOST['base_path']
This commit is contained in:
parent
6d92aa6d12
commit
4a40f65090
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ namespace :gitlab do
|
||||||
end
|
end
|
||||||
|
|
||||||
GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"]
|
GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"]
|
||||||
print "/home/git/repositories/............"
|
print "#{GIT_HOST['base_path']}............"
|
||||||
if File.exists?(GIT_HOST['base_path'])
|
if File.exists?(GIT_HOST['base_path'])
|
||||||
puts "exists".green
|
puts "exists".green
|
||||||
else
|
else
|
||||||
|
@ -29,7 +29,7 @@ namespace :gitlab do
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
print "/home/git/repositories/ is writable?............"
|
print "#{GIT_HOST['base_path']} is writable?............"
|
||||||
if File.stat(GIT_HOST['base_path']).writable?
|
if File.stat(GIT_HOST['base_path']).writable?
|
||||||
puts "YES".green
|
puts "YES".green
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue