Skip to content
Snippets Groups Projects
Commit d7501c7b authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix sudo_gitlab helper

parent 3b89a683
Branches
Tags
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment