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
Boxiang Sun
gitlab-ce
Commits
c816dcc1
Commit
c816dcc1
authored
Dec 30, 2012
by
Kevin Lamontagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't setuid the repositories (Rake checks)
parent
29baadf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
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/raketasks/maintenance.md
View file @
c816dcc1
...
@@ -94,7 +94,7 @@ Config directory owned by git:git? ... yes
...
@@ -94,7 +94,7 @@ Config directory owned by git:git? ... yes
Config directory access is drwxr-x---? ... yes
Config directory access is drwxr-x---? ... yes
Repo base directory exists? ... yes
Repo base directory exists? ... yes
Repo base owned by git:git? ... 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 clone gitolite-admin? ... yes
Can commit to gitolite-admin? ... yes
Can commit to gitolite-admin? ... yes
post-receive hook exists? ... yes
post-receive hook exists? ... yes
...
...
lib/tasks/gitlab/check.rake
View file @
c816dcc1
...
@@ -693,7 +693,7 @@ namespace :gitlab do
...
@@ -693,7 +693,7 @@ namespace :gitlab do
end
end
def
check_repo_base_permissions
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
repo_base_path
=
Gitlab
.
config
.
gitolite
.
repos_path
unless
File
.
exists?
(
repo_base_path
)
unless
File
.
exists?
(
repo_base_path
)
...
@@ -701,13 +701,15 @@ namespace :gitlab do
...
@@ -701,13 +701,15 @@ namespace :gitlab do
return
return
end
end
if
`stat --printf %a
#{
repo_base_path
}
`
==
"
6
770"
if
`stat --printf %a
#{
repo_base_path
}
`
==
"
2
770"
puts
"yes"
.
green
puts
"yes"
.
green
else
else
puts
"no"
.
red
puts
"no"
.
red
puts
"
#{
repo_base_path
}
is not writable"
.
red
puts
"
#{
repo_base_path
}
is not writable"
.
red
try_fixing_it
(
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 -type d
#{
repo_base_path
}
-print0 | sudo xargs -0 chmod g+s"
)
)
for_more_information
(
for_more_information
(
see_installation_guide_section
"Gitolite"
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