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
4d0af232
Commit
4d0af232
authored
Jan 11, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make method names clearer in check.rake
parent
a213d4b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+8
-9
No files found.
lib/tasks/gitlab/check.rake
View file @
4d0af232
...
...
@@ -317,7 +317,7 @@ namespace :gitlab do
gitolite_ssh_user
=
Gitlab
.
config
.
gitolite
.
ssh_user
print
"Has no
\"
-e
\"
in ~
#{
gitolite_ssh_user
}
/.profile ... "
profile_file
=
File
.
join
(
gitolite_home
,
".profile"
)
profile_file
=
File
.
join
(
gitolite_
user_
home
,
".profile"
)
unless
File
.
read
(
profile_file
)
=~
/^-e PATH/
puts
"yes"
.
green
...
...
@@ -475,7 +475,7 @@ namespace :gitlab do
def
check_dot_gitolite_exists
print
"Config directory exists? ... "
gitolite_config_path
=
File
.
join
(
gitolite_home
,
".gitolite"
)
gitolite_config_path
=
File
.
join
(
gitolite_
user_
home
,
".gitolite"
)
if
File
.
directory?
(
gitolite_config_path
)
puts
"yes"
.
green
...
...
@@ -496,7 +496,7 @@ namespace :gitlab do
def
check_dot_gitolite_permissions
print
"Config directory access is drwxr-x---? ... "
gitolite_config_path
=
File
.
join
(
gitolite_home
,
".gitolite"
)
gitolite_config_path
=
File
.
join
(
gitolite_
user_
home
,
".gitolite"
)
unless
File
.
exists?
(
gitolite_config_path
)
puts
"can't check because of previous errors"
.
magenta
return
...
...
@@ -520,7 +520,7 @@ namespace :gitlab do
gitolite_ssh_user
=
Gitlab
.
config
.
gitolite
.
ssh_user
print
"Config directory owned by
#{
gitolite_ssh_user
}
:
#{
gitolite_ssh_user
}
... "
gitolite_config_path
=
File
.
join
(
gitolite_home
,
".gitolite"
)
gitolite_config_path
=
File
.
join
(
gitolite_
user_
home
,
".gitolite"
)
unless
File
.
exists?
(
gitolite_config_path
)
puts
"can't check because of previous errors"
.
magenta
return
...
...
@@ -559,7 +559,7 @@ namespace :gitlab do
end
def
check_gitoliterc_git_config_keys
gitoliterc_path
=
File
.
join
(
gitolite_home
,
".gitolite.rc"
)
gitoliterc_path
=
File
.
join
(
gitolite_
user_
home
,
".gitolite.rc"
)
print
"Allow all Git config keys in .gitolite.rc ... "
option_name
=
if
has_gitolite3?
...
...
@@ -588,7 +588,7 @@ namespace :gitlab do
end
def
check_gitoliterc_repo_umask
gitoliterc_path
=
File
.
join
(
gitolite_home
,
".gitolite.rc"
)
gitoliterc_path
=
File
.
join
(
gitolite_
user_
home
,
".gitolite.rc"
)
print
"Repo umask is 0007 in .gitolite.rc? ... "
option_name
=
if
has_gitolite3?
...
...
@@ -726,7 +726,6 @@ namespace :gitlab do
puts
"yes"
.
green
else
puts
"no"
.
red
puts
"
#{
repo_base_path
}
is not writable"
.
red
try_fixing_it
(
"sudo chmod -R ug+rwXs,o-rwx
#{
repo_base_path
}
"
)
...
...
@@ -852,12 +851,12 @@ namespace :gitlab do
# Helper methods
########################
def
gitolite_home
def
gitolite_
user_
home
File
.
expand_path
(
"~
#{
Gitlab
.
config
.
gitolite
.
ssh_user
}
"
)
end
def
gitolite_version
gitolite_version_file
=
"
#{
gitolite_home
}
/gitolite/src/VERSION"
gitolite_version_file
=
"
#{
gitolite_
user_
home
}
/gitolite/src/VERSION"
if
File
.
readable?
(
gitolite_version_file
)
File
.
read
(
gitolite_version_file
)
end
...
...
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