mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Merge branch 'staging' of https://github.com/internetee/registry into staging
This commit is contained in:
commit
6141c3921c
3 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,7 @@ class LegalDocument < ActiveRecord::Base
|
|||
next if rand.to_i == 0 || rand.length < 4
|
||||
|
||||
dir = "#{ENV['legal_documents_dir']}/#{Time.zone.now.strftime('%Y/%m/%d')}"
|
||||
FileUtils.mkdir_p(dir)
|
||||
FileUtils.mkdir_p(dir, mode: 0775)
|
||||
self.path = "#{dir}/#{Time.zone.now.to_formatted_s(:number)}_#{rand}.#{document_type}"
|
||||
break unless File.file?(path)
|
||||
end
|
||||
|
|
|
@ -57,6 +57,7 @@ namespace :import do
|
|||
Rake::Task['import:reserved'].invoke
|
||||
Rake::Task['import:domains'].invoke
|
||||
Rake::Task['import:zones'].invoke
|
||||
Rake::Task['zonefile:replace_procedure'].invoke
|
||||
end
|
||||
|
||||
desc 'Import registrars'
|
||||
|
|
|
@ -103,8 +103,8 @@ namespace :zonefile do
|
|||
SELECT array_to_string(
|
||||
array(
|
||||
SELECT concat(
|
||||
d.name_puny, '. IN DS ', dk.ds_key_tag, ' ',
|
||||
dk.ds_alg, ' ', dk.ds_digest_type, ' ( ', dk.ds_digest, ' )'
|
||||
d.name_puny, '. 3600 IN DS ', dk.ds_key_tag, ' ',
|
||||
dk.ds_alg, ' ', dk.ds_digest_type, ' ', dk.ds_digest
|
||||
)
|
||||
FROM domains d
|
||||
JOIN dnskeys dk ON dk.domain_id = d.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue