use file? instead of exists? to check for correct ca bundle path

This commit is contained in:
Jonne Haß 2012-11-27 21:14:44 +01:00
parent fc180a4521
commit 7aa0726971

View file

@ -34,7 +34,7 @@ AppConfig ||= Configuration::Settings.create do
extend Configuration::Methods extend Configuration::Methods
if Rails.env == "production" && (environment.certificate_authorities.blank? || !File.exists?(environment.certificate_authorities.get)) if Rails.env == "production" && (environment.certificate_authorities.blank? || !File.file?(environment.certificate_authorities.get))
$stderr.puts "FATAL: Diaspora doesn't know where your certificate authorities are. Please ensure they are set to a valid path in diaspora.yml" $stderr.puts "FATAL: Diaspora doesn't know where your certificate authorities are. Please ensure they are set to a valid path in diaspora.yml"
Process.exit(1) Process.exit(1)
end end