Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
a1a6f3cc
Commit
a1a6f3cc
authored
Feb 10, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify permissions creation
[ci skip]
parent
751ae140
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/install/installation.md
doc/install/installation.md
+2
-2
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+1
-1
No files found.
doc/install/installation.md
View file @
a1a6f3cc
...
@@ -268,11 +268,11 @@ sudo usermod -aG redis git
...
@@ -268,11 +268,11 @@ sudo usermod -aG redis git
sudo chmod -R u+rwX tmp/sockets/
sudo chmod -R u+rwX tmp/sockets/
# Create the public/uploads/ directory
# Create the public/uploads/ directory
sudo -u git -H mkdir
-m 0700
public/uploads/
sudo -u git -H mkdir public/uploads/
# Make sure only the GitLab user has access to the public/uploads/ directory
# Make sure only the GitLab user has access to the public/uploads/ directory
# now that files in public/uploads are served by gitlab-workhorse
# now that files in public/uploads are served by gitlab-workhorse
sudo chmod
-R go-rwX
public/uploads
sudo chmod
0700
public/uploads
# Change the permissions of the directory where CI build traces are stored
# Change the permissions of the directory where CI build traces are stored
sudo chmod -R u+rwX builds/
sudo chmod -R u+rwX builds/
...
...
lib/tasks/gitlab/check.rake
View file @
a1a6f3cc
...
@@ -285,7 +285,7 @@ namespace :gitlab do
...
@@ -285,7 +285,7 @@ namespace :gitlab do
unless
File
.
directory?
(
Rails
.
root
.
join
(
'public/uploads'
))
unless
File
.
directory?
(
Rails
.
root
.
join
(
'public/uploads'
))
puts
"no"
.
red
puts
"no"
.
red
try_fixing_it
(
try_fixing_it
(
"sudo -u
#{
gitlab_user
}
mkdir
-m 0700
#{
Rails
.
root
}
/public/uploads"
"sudo -u
#{
gitlab_user
}
mkdir
#{
Rails
.
root
}
/public/uploads"
)
)
for_more_information
(
for_more_information
(
see_installation_guide_section
"GitLab"
see_installation_guide_section
"GitLab"
...
...
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