Skip to content
Snippets Groups Projects
Commit 53b3d626 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

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
No related branches found
No related tags found
1 merge request!3602Added check_redis_version to check.rake
Loading
Loading
@@ -23,6 +23,7 @@ namespace :gitlab do
check_init_script_exists
check_init_script_up_to_date
check_satellites_exist
check_redis_version
 
finished_checking "GitLab"
end
Loading
Loading
@@ -245,6 +246,25 @@ namespace :gitlab do
fix_and_rerun
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
 
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment