From 7aa0726971b013b023c6ae8581a6b931724a42e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Tue, 27 Nov 2012 21:14:44 +0100 Subject: [PATCH] use file? instead of exists? to check for correct ca bundle path --- config/load_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/load_config.rb b/config/load_config.rb index 1e7cfd5ba..91af27e07 100644 --- a/config/load_config.rb +++ b/config/load_config.rb @@ -34,7 +34,7 @@ AppConfig ||= Configuration::Settings.create do 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" Process.exit(1) end