Skip to content
Snippets Groups Projects
Commit d9ca1bce authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Fix paths in gitlab:check

parent a9e2fa4c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -317,7 +317,7 @@ namespace :gitlab do
gitolite_ssh_user = Gitlab.config.gitolite.ssh_user
print "Has no \"-e\" in ~#{gitolite_ssh_user}/.profile ... "
 
profile_file = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}/.profile")
profile_file = File.join(gitolite_home, ".profile")
 
unless File.read(profile_file) =~ /^-e PATH/
puts "yes".green
Loading
Loading
@@ -474,7 +474,7 @@ namespace :gitlab do
def check_dot_gitolite_exists
print "Config directory exists? ... "
 
gitolite_config_path = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}/.gitolite")
gitolite_config_path = File.join(gitolite_home, ".gitolite")
 
if File.directory?(gitolite_config_path)
puts "yes".green
Loading
Loading
@@ -495,7 +495,7 @@ namespace :gitlab do
def check_dot_gitolite_permissions
print "Config directory access is drwxr-x---? ... "
 
gitolite_config_path = File.expand_path("~#{Gitlab.config.gitolite.ssh_user}/.gitolite")
gitolite_config_path = File.join(gitolite_home, ".gitolite")
unless File.exists?(gitolite_config_path)
puts "can't check because of previous errors".magenta
return
Loading
Loading
@@ -519,7 +519,7 @@ namespace :gitlab do
gitolite_ssh_user = Gitlab.config.gitolite.ssh_user
print "Config directory owned by #{gitolite_ssh_user}:#{gitolite_ssh_user} ... "
 
gitolite_config_path = File.expand_path("~#{gitolite_ssh_user}/.gitolite")
gitolite_config_path = File.join(gitolite_home, ".gitolite")
unless File.exists?(gitolite_config_path)
puts "can't check because of previous errors".magenta
return
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