BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f1977854
Commit
f1977854
authored
Aug 26, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sudu -u git where appropriate
parent
d0420c68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
README.md
doc/reply_by_email/README.md
+1
-1
check.rake
lib/tasks/gitlab/check.rake
+6
-4
No files found.
doc/reply_by_email/README.md
View file @
f1977854
...
@@ -92,7 +92,7 @@ In this example, we'll use the Gmail address `gitlab-replies@gmail.com`.
...
@@ -92,7 +92,7 @@ In this example, we'll use the Gmail address `gitlab-replies@gmail.com`.
7.
Check if everything is configured correctly:
7.
Check if everything is configured correctly:
```sh
```sh
sudo bundle exec rake gitlab:reply_by_email:check RAILS_ENV=production
sudo
-u git -H
bundle exec rake gitlab:reply_by_email:check RAILS_ENV=production
```
```
8.
Reply by email should now be working.
8.
Reply by email should now be working.
...
...
lib/tasks/gitlab/check.rake
View file @
f1977854
...
@@ -595,7 +595,7 @@ namespace :gitlab do
...
@@ -595,7 +595,7 @@ namespace :gitlab do
else
else
puts
"no"
.
red
puts
"no"
.
red
try_fixing_it
(
try_fixing_it
(
sudo_gitlab
(
"
RAILS_ENV=production sudo -u git -H bin/background_jobs start
"
)
sudo_gitlab
(
"
bin/background_jobs start"
,
"RAILS_ENV=production
"
)
)
)
for_more_information
(
for_more_information
(
see_installation_guide_section
(
"Install Init Script"
),
see_installation_guide_section
(
"Install Init Script"
),
...
@@ -726,7 +726,7 @@ namespace :gitlab do
...
@@ -726,7 +726,7 @@ namespace :gitlab do
else
else
puts
"no"
.
red
puts
"no"
.
red
try_fixing_it
(
try_fixing_it
(
sudo_gitlab
(
"
RAILS_ENV=production sudo -u git -H bin/mail_room start
"
)
sudo_gitlab
(
"
bin/mail_room start"
,
"RAILS_ENV=production
"
)
)
)
for_more_information
(
for_more_information
(
see_installation_guide_section
(
"Install Init Script"
),
see_installation_guide_section
(
"Install Init Script"
),
...
@@ -879,8 +879,10 @@ namespace :gitlab do
...
@@ -879,8 +879,10 @@ namespace :gitlab do
"doc/install/installation.md in section
\"
#{
section
}
\"
"
"doc/install/installation.md in section
\"
#{
section
}
\"
"
end
end
def
sudo_gitlab
(
command
)
def
sudo_gitlab
(
command
,
env
=
nil
)
"sudo -u
#{
gitlab_user
}
-H
#{
command
}
"
cmd
=
"sudo -u
#{
gitlab_user
}
-H
#{
command
}
"
cmd
.
prepend
"
#{
env
}
"
if
env
cmd
end
end
def
gitlab_user
def
gitlab_user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment