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
Léo-Paul Géneau
gitlab-ce
Commits
a3c80673
Commit
a3c80673
authored
Sep 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitlab-shell-check' of /home/git/repositories/gitlab/gitlabhq
parents
0009016b
ddf873ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+18
-0
No files found.
lib/tasks/gitlab/check.rake
View file @
a3c80673
...
@@ -376,6 +376,7 @@ namespace :gitlab do
...
@@ -376,6 +376,7 @@ namespace :gitlab do
check_repo_base_permissions
check_repo_base_permissions
check_update_hook_is_up_to_date
check_update_hook_is_up_to_date
check_repos_update_hooks_is_link
check_repos_update_hooks_is_link
check_gitlab_shell_self_test
finished_checking
"GitLab Shell"
finished_checking
"GitLab Shell"
end
end
...
@@ -552,6 +553,23 @@ namespace :gitlab do
...
@@ -552,6 +553,23 @@ namespace :gitlab do
end
end
end
end
def
check_gitlab_shell_self_test
gitlab_shell_repo_base
=
File
.
expand_path
(
'gitlab-shell'
,
gitlab_shell_user_home
)
check_cmd
=
File
.
expand_path
(
'bin/check'
,
gitlab_shell_repo_base
)
puts
"Running
#{
check_cmd
}
"
if
system
(
check_cmd
,
chdir:
gitlab_shell_repo_base
)
puts
'gitlab-shell self-check successful'
.
green
else
puts
'gitlab-shell self-check failed'
.
red
try_fixing_it
(
'Make sure GitLab is running;'
,
'Check the gitlab-shell configuration file:'
,
sudo_gitlab
(
"editor
#{
File
.
expand_path
(
'config.yml'
,
gitlab_shell_repo_base
)
}
"
)
)
fix_and_rerun
end
end
# Helper methods
# Helper methods
########################
########################
...
...
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