use file? instead of exists? to check for correct ca bundle path
This commit is contained in:
parent
fc180a4521
commit
7aa0726971
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue