Commit d7501c7b authored by Douwe Maan's avatar Douwe Maan

Fix sudo_gitlab helper

parent 3b89a683
...@@ -882,10 +882,8 @@ namespace :gitlab do ...@@ -882,10 +882,8 @@ namespace :gitlab do
"doc/install/installation.md in section \"#{section}\"" "doc/install/installation.md in section \"#{section}\""
end end
def sudo_gitlab(command, env = nil) def sudo_gitlab(command)
cmd = "sudo -u #{gitlab_user} -H #{command}" "sudo -u #{gitlab_user} -H #{command}"
cmd.prepend "#{env} " if env
cmd
end end
def gitlab_user 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