Fix sudo_gitlab helper

This commit is contained in:
Douwe Maan
2015-09-10 09:25:41 +01:00
parent 3b89a68302
commit d7501c7bb9
+2 -4
View File
@@ -882,10 +882,8 @@ namespace :gitlab do
"doc/install/installation.md in section \"#{section}\""
end
def sudo_gitlab(command, env = nil)
cmd = "sudo -u #{gitlab_user} -H #{command}"
cmd.prepend "#{env} " if env
cmd
def sudo_gitlab(command)
"sudo -u #{gitlab_user} -H #{command}"
end
def gitlab_user