Commit d7501c7b authored by Douwe Maan's avatar Douwe Maan

Fix sudo_gitlab helper

parent 3b89a683
......@@ -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
......
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