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
a5e19c4e
Commit
a5e19c4e
authored
Sep 24, 2013
by
Hiroyuki Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update check script
* GitLab Shell 1.7.1 is required * Global projects are not supported (refs #5152)
parent
e4ba9349
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+28
-1
No files found.
lib/tasks/gitlab/check.rake
View file @
a5e19c4e
...
@@ -22,6 +22,7 @@ namespace :gitlab do
...
@@ -22,6 +22,7 @@ namespace :gitlab do
check_tmp_writable
check_tmp_writable
check_init_script_exists
check_init_script_exists
check_init_script_up_to_date
check_init_script_up_to_date
check_projects_have_namespace
check_satellites_exist
check_satellites_exist
check_redis_version
check_redis_version
check_git_version
check_git_version
...
@@ -552,6 +553,32 @@ namespace :gitlab do
...
@@ -552,6 +553,32 @@ namespace :gitlab do
end
end
end
end
def
check_projects_have_namespace
print
"projects have namespace: ... "
unless
Project
.
count
>
0
puts
"can't check, you have no projects"
.
magenta
return
end
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
print
"
#{
project
.
name_with_namespace
.
yellow
}
... "
if
project
.
namespace
puts
"yes"
.
green
else
puts
"no"
.
red
try_fixing_it
(
"Migrate global projects"
)
for_more_information
(
"doc/update/5.4-to-6.0.md in section
\"
#global-projects
\"
"
)
fix_and_rerun
end
end
end
# Helper methods
# Helper methods
########################
########################
...
@@ -659,7 +686,7 @@ namespace :gitlab do
...
@@ -659,7 +686,7 @@ namespace :gitlab do
end
end
def
check_gitlab_shell
def
check_gitlab_shell
required_version
=
Gitlab
::
VersionInfo
.
new
(
1
,
7
,
0
)
required_version
=
Gitlab
::
VersionInfo
.
new
(
1
,
7
,
1
)
current_version
=
Gitlab
::
VersionInfo
.
parse
(
gitlab_shell_version
)
current_version
=
Gitlab
::
VersionInfo
.
parse
(
gitlab_shell_version
)
print
"GitLab Shell version >=
#{
required_version
}
? ... "
print
"GitLab Shell version >=
#{
required_version
}
? ... "
...
...
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