mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 08:26:22 +00:00
fix: no crear subdominios para dominios personalizados
esto es por retrocompatibilidad para sitios que no usan DeployAlternativeDomain
This commit is contained in:
parent
3f7b2484d0
commit
a849eac179
1 changed files with 5 additions and 3 deletions
|
@ -113,9 +113,11 @@ class DeployDistributedPress < Deploy
|
|||
|
||||
# XXX: Esto depende de nuestro DNS actual, cuando lo migremos hay
|
||||
# que eliminarlo.
|
||||
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
|
||||
unless site.name.end_with? '.'
|
||||
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
|
||||
end
|
||||
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue