mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 10:36:04 +10:00
Fix sudo_gitlab helper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user