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
Jérome Perrin
gitlab-ce
Commits
18f83016
Commit
18f83016
authored
Jul 26, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed persmission issue in doc. Added validation of hooks in gitlab:app:status
parent
c27105f8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
21 deletions
+55
-21
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+0
-4
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+5
-0
app/views/errors/gitolite.html.haml
app/views/errors/gitolite.html.haml
+26
-15
doc/installation.md
doc/installation.md
+1
-0
lib/tasks/gitlab/status.rake
lib/tasks/gitlab/status.rake
+23
-2
No files found.
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
18f83016
...
@@ -74,10 +74,6 @@ h5 {
...
@@ -74,10 +74,6 @@ h5 {
font-size
:
14px
;
font-size
:
14px
;
}
}
code
{
background
:
#FCEEC1
;
color
:
$style_color
;
}
table
{
table
{
width
:
100%
;
width
:
100%
;
...
...
app/assets/stylesheets/sections/commits.scss
View file @
18f83016
...
@@ -194,4 +194,9 @@
...
@@ -194,4 +194,9 @@
float
:right
;
float
:right
;
@extend
.cgray
;
@extend
.cgray
;
}
}
code
{
background
:
#FCEEC1
;
color
:
$style_color
;
}
}
}
app/views/errors/gitolite.html.haml
View file @
18f83016
.alert-message.block-message.error
.alert-message.block-message.error
%h3
Gitolite Error
%h3
Gitolite Error
%hr
%h4
Application cant get access to your gitolite system.
%h4
Application cant get access to your gitolite system.
%ol
%li
%p
Check 'config/gitlab.yml' for correct settings.
%li
%h4
Tips for Administrator:
%p
Make sure web server user has access to gitolite.
%ul
%a
{
:href
=>
"https://github.com/gitlabhq/gitlabhq/wiki/Gitolite"
}
Setup tutorial
%li
%li
%p
%p
Check git logs in admin area
Try:
%li
%p
Check config/gitlab.yml for correct settings.
%li
%p
Diagnostic tool:
%pre
%pre
=
preserve
do
bundle exec rake gitlab:app:status RAILS_ENV=production
sudo chmod -R 770 /home/git/repositories/
%li
sudo chown -R git:git /home/git/repositories/
%p
Permissions:
%pre
=
preserve
do
sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
sudo chown gitlab:gitlab /home/git/repositories/**/hooks/post-receive
doc/installation.md
View file @
18f83016
...
@@ -119,6 +119,7 @@ Permissions:
...
@@ -119,6 +119,7 @@ Permissions:
sudo chmod -R g+rwX /home/git/repositories/
sudo chmod -R g+rwX /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
sudo chown gitlab:gitlab /home/git/repositories/**/hooks/post-receive
#### CHECK: Logout & login again to apply git group to your user
#### CHECK: Logout & login again to apply git group to your user
...
...
lib/tasks/gitlab/status.rake
View file @
18f83016
...
@@ -2,7 +2,7 @@ namespace :gitlab do
...
@@ -2,7 +2,7 @@ namespace :gitlab do
namespace
:app
do
namespace
:app
do
desc
"GITLAB | Check gitlab installation status"
desc
"GITLAB | Check gitlab installation status"
task
:status
=>
:environment
do
task
:status
=>
:environment
do
puts
"Starting diagnostic"
puts
"Starting diagnostic"
.
yellow
git_base_path
=
Gitlab
.
config
.
git_base_path
git_base_path
=
Gitlab
.
config
.
git_base_path
print
"config/database.yml............"
print
"config/database.yml............"
...
@@ -56,7 +56,28 @@ namespace :gitlab do
...
@@ -56,7 +56,28 @@ namespace :gitlab do
return
return
end
end
puts
"
\n
Finished"
if
Project
.
count
>
0
puts
"Validating projects repositories:"
.
yellow
Project
.
find_each
(
:batch_size
=>
100
)
do
|
project
|
print
"
#{
project
.
name
}
....."
hook_file
=
File
.
join
(
project
.
path_to_repo
,
'hooks'
,
'post-receive'
)
unless
File
.
exists?
(
hook_file
)
puts
"post-receive file missing"
.
red
next
end
unless
File
.
owned?
(
hook_file
)
puts
"post-receive file is not owner by gitlab"
.
red
next
end
puts
"post-reveice file ok"
.
green
end
end
puts
"
\n
Finished"
.
blue
end
end
end
end
end
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