Implement additional plugin hook script.onUpdateConfig

Implements #4451
This commit is contained in:
Simone Mainardi 2020-09-20 13:19:36 +02:00
parent 402e1113fb
commit 304c5404f2
4 changed files with 70 additions and 0 deletions

View file

@ -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