Commit 147b93ee3edc60d6abbe10631ba89b607ec3ea48
1 parent
10269553
Exists in
master
and in
4 other branches
check gitlab-shell version in gitlab:check
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
lib/tasks/gitlab/check.rake
@@ -348,6 +348,7 @@ namespace :gitlab do | @@ -348,6 +348,7 @@ namespace :gitlab do | ||
348 | warn_user_is_not_gitlab | 348 | warn_user_is_not_gitlab |
349 | start_checking "Gitlab Shell" | 349 | start_checking "Gitlab Shell" |
350 | 350 | ||
351 | + check_gitlab_shell | ||
351 | check_repo_base_exists | 352 | check_repo_base_exists |
352 | check_repo_base_is_not_symlink | 353 | check_repo_base_is_not_symlink |
353 | check_repo_base_user_and_group | 354 | check_repo_base_user_and_group |
@@ -633,4 +634,13 @@ namespace :gitlab do | @@ -633,4 +634,13 @@ namespace :gitlab do | ||
633 | puts " #{step}" | 634 | puts " #{step}" |
634 | end | 635 | end |
635 | end | 636 | end |
637 | + | ||
638 | + def check_gitlab_shell | ||
639 | + print "GitLab Shell version? ... " | ||
640 | + if gitlab_shell_version.strip == '1.1.0' | ||
641 | + puts 'OK (1.1.0)'.green | ||
642 | + else | ||
643 | + puts 'FAIL. Please update gitlab-shell to v1.1.0'.red | ||
644 | + end | ||
645 | + end | ||
636 | end | 646 | end |