Commit 53b3d626 authored by axilleas's avatar axilleas

Added check_redis_version. Fixes #3449

Checking the redis version will warn users that
are using an old version to update. Included
reference to the troubleshooting guide.
parent 63b78a39
...@@ -23,6 +23,7 @@ namespace :gitlab do ...@@ -23,6 +23,7 @@ namespace :gitlab do
check_init_script_exists check_init_script_exists
check_init_script_up_to_date check_init_script_up_to_date
check_satellites_exist check_satellites_exist
check_redis_version
finished_checking "GitLab" finished_checking "GitLab"
end end
...@@ -244,6 +245,25 @@ namespace :gitlab do ...@@ -244,6 +245,25 @@ namespace :gitlab do
) )
fix_and_rerun fix_and_rerun
end end
end
def check_redis_version
print "Redis version >= 2.0.0? ... "
redis_version = `redis-cli --version`
if redis_version =~ /redis-cli 2.\d.\d/
puts "yes".green
else
puts "no".red
try_fixing_it(
"Update your redis server to a version >= 2.0.0"
)
for_more_information(
"See the Troubleshooting guide"
)
fix_and_rerun
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment