5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 02:46:25 +00:00

fix: no fallar njalla si falló dp

closes #12410
This commit is contained in:
f 2023-03-23 18:25:55 -03:00
parent 655edf59e1
commit e92d5947b4

View file

@ -133,6 +133,7 @@ class DeployDistributedPress < Deploy
# XXX: Esto depende de nuestro DNS actual, cuando lo migremos hay
# que eliminarlo.
unless site.name.end_with? '.'
self.remote_info ||= {}
self.remote_info['njalla'] = {}
self.remote_info['njalla']['a'] = njalla.add_record(name: site.name, type: 'CNAME', content: "#{Site.domain}.").to_h
self.remote_info['njalla']['ns'] = njalla.add_record(name: "_dnslink.#{site.name}", type: 'NS', content: "#{publisher.hostname}.").to_h