Skip to content
Snippets Groups Projects
Commit 4a40f650 authored by Denis Peplin's avatar Denis Peplin
Browse files

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

parent 6d92aa6d
No related branches found
No related tags found
1 merge request!973/home/git/repositories is hardcoded in rake task, replace it
Loading
Loading
@@ -21,7 +21,7 @@ namespace :gitlab do
end
 
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'])
puts "exists".green
else
Loading
Loading
@@ -29,7 +29,7 @@ namespace :gitlab do
return
end
 
print "/home/git/repositories/ is writable?............"
print "#{GIT_HOST['base_path']} is writable?............"
if File.stat(GIT_HOST['base_path']).writable?
puts "YES".green
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment