mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Added iptables update command config option
This commit is contained in:
parent
869c3fa95e
commit
5318e64a64
3 changed files with 10 additions and 0 deletions
|
@ -98,6 +98,7 @@ class EppController < ApplicationController
|
|||
@response = render_to_string(*args)
|
||||
render xml: @response
|
||||
write_to_epp_log
|
||||
iptables_counter_update
|
||||
end
|
||||
|
||||
# VALIDATION
|
||||
|
@ -282,4 +283,8 @@ class EppController < ApplicationController
|
|||
end
|
||||
# rubocop: enable Metrics/PerceivedComplexity
|
||||
# rubocop: enable Metrics/CyclomaticComplexity
|
||||
|
||||
def iptables_counter_update
|
||||
`ENV['iptables_counter_update_command']` if ENV['iptables_counter_update_command'].present?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue