mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Refreshes recipients upon plugins reload
This commit is contained in:
parent
75f3df1026
commit
d8d8ee08ee
2 changed files with 9 additions and 4 deletions
|
|
@ -2,8 +2,10 @@
|
|||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local plugins_utils = {}
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/recipients/?.lua;" .. package.path
|
||||
|
||||
local plugins_utils = {}
|
||||
local os_utils = require("os_utils")
|
||||
local persistence = require("persistence")
|
||||
local file_utils = require("file_utils")
|
||||
|
|
@ -612,6 +614,9 @@ function plugins_utils.loadPlugins(community_plugins_only)
|
|||
-- Reload the periodic scripts to load the new plugins
|
||||
ntop.reloadPeriodicScripts()
|
||||
|
||||
local recipients = require "recipients":create()
|
||||
recipients:set_recipients_change()
|
||||
|
||||
return(true)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue