Commit a9975336 authored by MeiHui FAN's avatar MeiHui FAN Committed by Dmitriy Zaporozhets

improve regrex for match(sidekiq) robustness

e.g.: the sidekiq in my Debian box is v2.11.1
parent baaf17a6
......@@ -588,7 +588,7 @@ namespace :gitlab do
def check_sidekiq_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
else
puts "no".red
......
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