mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +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
|
next if rand.to_i == 0 || rand.length < 4
|
||||||
|
|
||||||
dir = "#{ENV['legal_documents_dir']}/#{Time.zone.now.strftime('%Y/%m/%d')}"
|
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}"
|
self.path = "#{dir}/#{Time.zone.now.to_formatted_s(:number)}_#{rand}.#{document_type}"
|
||||||
break unless File.file?(path)
|
break unless File.file?(path)
|
||||||
end
|
end
|
||||||
|
|
|
@ -57,6 +57,7 @@ namespace :import do
|
||||||
Rake::Task['import:reserved'].invoke
|
Rake::Task['import:reserved'].invoke
|
||||||
Rake::Task['import:domains'].invoke
|
Rake::Task['import:domains'].invoke
|
||||||
Rake::Task['import:zones'].invoke
|
Rake::Task['import:zones'].invoke
|
||||||
|
Rake::Task['zonefile:replace_procedure'].invoke
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Import registrars'
|
desc 'Import registrars'
|
||||||
|
|
|
@ -103,8 +103,8 @@ namespace :zonefile do
|
||||||
SELECT array_to_string(
|
SELECT array_to_string(
|
||||||
array(
|
array(
|
||||||
SELECT concat(
|
SELECT concat(
|
||||||
d.name_puny, '. IN DS ', dk.ds_key_tag, ' ',
|
d.name_puny, '. 3600 IN DS ', dk.ds_key_tag, ' ',
|
||||||
dk.ds_alg, ' ', dk.ds_digest_type, ' ( ', dk.ds_digest, ' )'
|
dk.ds_alg, ' ', dk.ds_digest_type, ' ', dk.ds_digest
|
||||||
)
|
)
|
||||||
FROM domains d
|
FROM domains d
|
||||||
JOIN dnskeys dk ON dk.domain_id = d.id
|
JOIN dnskeys dk ON dk.domain_id = d.id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue