Commit 23f5698413cca147ac30e138ee8c739df0d56db0
1 parent
b851bbfa
Exists in
master
and in
4 other branches
Fixed redis-cli check function
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
lib/tasks/gitlab/check.rake
... | ... | @@ -250,9 +250,7 @@ namespace :gitlab do |
250 | 250 | def check_redis_version |
251 | 251 | print "Redis version >= 2.0.0? ... " |
252 | 252 | |
253 | - redis_version = `redis-cli --version` | |
254 | - | |
255 | - if redis_version =~ /redis-cli 2.\d.\d/ | |
253 | + if run_and_match("redis-cli --version", /redis-cli 2.\d.\d/) | |
256 | 254 | puts "yes".green |
257 | 255 | else |
258 | 256 | puts "no".red |
... | ... | @@ -260,7 +258,7 @@ namespace :gitlab do |
260 | 258 | "Update your redis server to a version >= 2.0.0" |
261 | 259 | ) |
262 | 260 | for_more_information( |
263 | - "See the Troubleshooting guide" | |
261 | + "gitlab-public-wiki/wiki/Trouble-Shooting-Guide in section sidekiq" | |
264 | 262 | ) |
265 | 263 | fix_and_rerun |
266 | 264 | end | ... | ... |