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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
003c3121
Commit
003c3121
authored
Feb 01, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2440 from klamontagne/master
Don't setuid the repositories on installation
parents
0965aeb2
f4175219
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
doc/install/installation.md
doc/install/installation.md
+2
-1
doc/raketasks/maintenance.md
doc/raketasks/maintenance.md
+1
-1
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+5
-3
No files found.
doc/install/installation.md
View file @
003c3121
...
...
@@ -145,8 +145,9 @@ Fix the directory permissions for the configuration directory:
Fix the directory permissions for the repositories:
# Make sure the repositories dir is owned by git and it stays that way
sudo chmod -R ug+rwX
s
,o-rwx /home/git/repositories/
sudo chmod -R ug+rwX,o-rwx /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
find /home/git/repositories -type d -print0 | sudo xargs -0 chmod g+s
## Add domains to list to the list of known hosts
...
...
doc/raketasks/maintenance.md
View file @
003c3121
...
...
@@ -81,7 +81,7 @@ Config directory owned by git:git? ... yes
Config directory access is drwxr-x---? ... yes
Repo base directory exists? ... yes
Repo base owned by git:git? ... yes
Repo base access is drw
s
rws---? ... yes
Repo base access is drw
x
rws---? ... yes
Can clone gitolite-admin? ... yes
Can commit to gitolite-admin? ... yes
post-receive hook exists? ... yes
...
...
lib/tasks/gitlab/check.rake
View file @
003c3121
...
...
@@ -716,7 +716,7 @@ namespace :gitlab do
end
def
check_repo_base_permissions
print
"Repo base access is drw
s
rws---? ... "
print
"Repo base access is drw
x
rws---? ... "
repo_base_path
=
Gitlab
.
config
.
gitolite
.
repos_path
unless
File
.
exists?
(
repo_base_path
)
...
...
@@ -724,12 +724,14 @@ namespace :gitlab do
return
end
if
File
.
stat
(
repo_base_path
).
mode
.
to_s
(
8
).
ends_with?
(
"
6
770"
)
if
File
.
stat
(
repo_base_path
).
mode
.
to_s
(
8
).
ends_with?
(
"
2
770"
)
puts
"yes"
.
green
else
puts
"no"
.
red
try_fixing_it
(
"sudo chmod -R ug+rwXs,o-rwx
#{
repo_base_path
}
"
"sudo chmod -R ug+rwX,o-rwx
#{
repo_base_path
}
"
,
"sudo chmod -R u-s
#{
repo_base_path
}
"
,
"find
#{
repo_base_path
}
-type d -print0 | sudo xargs -0 chmod g+s"
)
for_more_information
(
see_installation_guide_section
"Gitolite"
...
...
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