mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implement additional plugin hook script.onUpdateConfig
Implements #4451
This commit is contained in:
parent
402e1113fb
commit
304c5404f2
4 changed files with 70 additions and 0 deletions
|
|
@ -614,9 +614,14 @@ function plugins_utils.loadPlugins(community_plugins_only)
|
|||
-- Reload the periodic scripts to load the new plugins
|
||||
ntop.reloadPeriodicScripts()
|
||||
|
||||
-- Mark a change in recipients so they will be automatically reloaded
|
||||
local recipients = require "recipients":create()
|
||||
recipients:set_recipients_change()
|
||||
|
||||
-- Reload user scripts with their configurations
|
||||
local user_scripts = require "user_scripts"
|
||||
user_scripts.reloadUserScripts()
|
||||
|
||||
return(true)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue