# File lib/phusion_passenger/platform_info/apache.rb, line 385 def self.a2dismod(options = {}) apxs2 = options[:apxs2] || self.apxs2 dir = File.dirname(apxs2) # a2dismod is supposed to be a Debian extension that only works # on the APT-installed Apache, so only return non-nil if we're # working against the APT-installed Apache. if dir == "/usr/bin" || dir == "/usr/sbin" if env_defined?('A2DISMOD') return ENV['A2DISMOD'] else return find_apache2_executable("a2dismod", options) end end end