Commit 2d83e43d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

FIx gitlab:env:info

parent 7a88bf09
...@@ -54,16 +54,14 @@ namespace :gitlab do ...@@ -54,16 +54,14 @@ namespace :gitlab do
# check Gitolite version # check Gitolite version
gitolite_version_file = "#{Gitlab.config.gitolite.repos_path}/../gitolite/src/VERSION" gitolite_version_file = "#{Gitlab.config.gitolite.repos_path}/../gitlab-shell/VERSION"
if File.readable?(gitolite_version_file) if File.readable?(gitolite_version_file)
gitolite_version = File.read(gitolite_version_file) gitolite_version = File.read(gitolite_version_file)
end end
puts "" puts ""
puts "Gitolite information".yellow puts "GitLab Shell".yellow
puts "Version:\t#{gitolite_version || "unknown".red}" puts "Version:\t#{gitolite_version || "unknown".red}"
puts "Admin URI:\t#{Gitlab.config.gitolite.admin_uri}"
puts "Admin Key:\t#{Gitlab.config.gitolite.admin_key}"
puts "Repositories:\t#{Gitlab.config.gitolite.repos_path}" puts "Repositories:\t#{Gitlab.config.gitolite.repos_path}"
puts "Hooks:\t\t#{Gitlab.config.gitolite.hooks_path}" puts "Hooks:\t\t#{Gitlab.config.gitolite.hooks_path}"
puts "Git:\t\t#{Gitlab.config.git.bin_path}" puts "Git:\t\t#{Gitlab.config.git.bin_path}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment