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
b5f116f0
Commit
b5f116f0
authored
Jan 07, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a check whether repos_path is a symlink
parent
b7314a16
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
config/gitlab.yml.example
config/gitlab.yml.example
+1
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+21
-0
No files found.
config/gitlab.yml.example
View file @
b5f116f0
...
@@ -92,6 +92,7 @@ backup:
...
@@ -92,6 +92,7 @@ backup:
## Gitolite settings
## Gitolite settings
gitolite:
gitolite:
admin_uri: git@localhost:gitolite-admin
admin_uri: git@localhost:gitolite-admin
# repos_path must not be a symlink
repos_path: /home/git/repositories/
repos_path: /home/git/repositories/
hooks_path: /home/git/.gitolite/hooks/
hooks_path: /home/git/.gitolite/hooks/
admin_key: gitlab
admin_key: gitlab
...
...
lib/tasks/gitlab/check.rake
View file @
b5f116f0
...
@@ -398,6 +398,7 @@ namespace :gitlab do
...
@@ -398,6 +398,7 @@ namespace :gitlab do
check_dot_gitolite_user_and_group
check_dot_gitolite_user_and_group
check_dot_gitolite_permissions
check_dot_gitolite_permissions
check_repo_base_exists
check_repo_base_exists
check_repo_base_is_not_symlink
check_repo_base_user_and_group
check_repo_base_user_and_group
check_repo_base_permissions
check_repo_base_permissions
check_can_clone_gitolite_admin
check_can_clone_gitolite_admin
...
@@ -692,6 +693,26 @@ namespace :gitlab do
...
@@ -692,6 +693,26 @@ namespace :gitlab do
end
end
end
end
def
check_repo_base_is_not_symlink
print
"Repo base directory is a symlink? ... "
repo_base_path
=
Gitlab
.
config
.
gitolite
.
repos_path
unless
File
.
exists?
(
repo_base_path
)
puts
"can't check because of previous errors"
.
magenta
return
end
unless
File
.
symlink?
(
repo_base_path
)
puts
"no"
.
green
else
puts
"yes"
.
red
try_fixing_it
(
"Make sure it's set to the real directory in config/gitlab.yml"
)
fix_and_rerun
end
end
def
check_repo_base_permissions
def
check_repo_base_permissions
print
"Repo base access is drwsrws---? ... "
print
"Repo base access is drwsrws---? ... "
...
...
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