Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
003c3121
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
003c3121
编写于
2月 01, 2013
作者:
R
Riyad Preukschas
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2440 from klamontagne/master
Don't setuid the repositories on installation
上级
0965aeb2
f4175219
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
5 deletion
+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
未找到文件。
doc/install/installation.md
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录