Skip to content
Snippets Groups Projects
Commit a9975336 authored by MeiHui FAN's avatar MeiHui FAN Committed by Dmitriy Zaporozhets
Browse files

improve regrex for match(sidekiq) robustness

e.g.: the sidekiq in my Debian box is v2.11.1
parent baaf17a6
No related branches found
No related tags found
4 merge requests!103705 2 stable,!52746 1 stable,!4341Added wiki-page search for 5-2-stable, Fixed issue #4310,!4230Merge 5-2 stable into master (fixes guides, etc.)
This commit is part of merge request !10370. Comments created here will be created in the context of that merge request.
Loading
@@ -588,7 +588,7 @@ namespace :gitlab do
Loading
@@ -588,7 +588,7 @@ namespace :gitlab do
def check_sidekiq_running def check_sidekiq_running
print "Running? ... " print "Running? ... "
   
if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d\.\d\.\d.+$/) if run_and_match("ps aux | grep -i sidekiq", /sidekiq \d+\.\d+\.\d+.+$/)
puts "yes".green puts "yes".green
else else
puts "no".red puts "no".red
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