mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
don't keep installing gabbler from bench
fix ab detection
This commit is contained in:
@ -29,7 +29,8 @@ begin
|
||||
require 'facter'
|
||||
rescue LoadError
|
||||
run "gem install facter"
|
||||
require 'facter'
|
||||
put "please rerun script"
|
||||
exit
|
||||
end
|
||||
|
||||
@timings = {}
|
||||
@ -62,7 +63,8 @@ end
|
||||
|
||||
puts "Ensuring config is setup"
|
||||
|
||||
unless %x{which ab > /dev/null 2>&1}
|
||||
%x{which ab > /dev/null 2>&1}
|
||||
unless $? == 0
|
||||
abort "Apache Bench is not installed. Try: apt-get install apache2-utils or brew install ab"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user