mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for letsencrypt test conditional
This commit is contained in:
parent
a546c88bad
commit
2656303458
1 changed files with 4 additions and 4 deletions
|
@ -71,12 +71,13 @@ class LetsEncryptWorker
|
|||
next
|
||||
end
|
||||
|
||||
if res.status != 200 && res.body != testfile_key
|
||||
if res.body.to_s == testfile_key
|
||||
puts "match: #{challenge_url}"
|
||||
verified_domains << domain
|
||||
else
|
||||
puts "CONTENT DOWNLOADED DID NOT MATCH #{challenge_url}"
|
||||
next
|
||||
end
|
||||
|
||||
verified_domains << domain
|
||||
end
|
||||
|
||||
if verified_domains.empty? || (site.created_at.year >= 2017 && !verified_domains.include?(domain_raw))
|
||||
|
@ -160,7 +161,6 @@ class LetsEncryptWorker
|
|||
end
|
||||
|
||||
clean_wellknown_turds site
|
||||
|
||||
csr = Acme::Client::CertificateRequest.new names: finalized_domains
|
||||
order.finalize csr: csr
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue