diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-10 09:25:41 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-10 09:25:41 +0100 |
commit | d7501c7bb914151ac77a9c07342a7d129724cb6c (patch) | |
tree | 85c3b87394b42c369df83890a405f6f2110caa97 | |
parent | 3b89a6830261a7252899674ddaef49b6d19a66d9 (diff) | |
download | gitlab-ce-reply-by-email-docs.tar.gz |
Fix sudo_gitlab helperreply-by-email-docs
-rw-r--r-- | lib/tasks/gitlab/check.rake | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index bcd25ccbaf3..b8eb13a4fea 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -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 |