mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
run configured crlupdater
This commit is contained in:
parent
1c8f04c099
commit
71b5af5b70
1 changed files with 9 additions and 4 deletions
|
@ -134,11 +134,16 @@ class Certificate < ApplicationRecord
|
|||
|
||||
class << self
|
||||
def update_crl
|
||||
update_id_crl
|
||||
update_registry_crl
|
||||
reload_apache
|
||||
# update_id_crl
|
||||
# update_registry_crl
|
||||
# reload_apache
|
||||
run_crlupdater
|
||||
end
|
||||
def run_crlupdater
|
||||
STDOUT << "#{Time.zone.now.utc} - Running crlupdater\n" unless Rails.env.test?
|
||||
system "#{ENV['crl_update_path']}"
|
||||
STDOUT << "#{Time.zone.now.utc} - Finished running crlupdater\n" unless Rails.env.test?
|
||||
end
|
||||
|
||||
def update_id_crl
|
||||
STDOUT << "#{Time.zone.now.utc} - Updating ID CRL\n" unless Rails.env.test?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue