mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reload the periodic scripts when the configuration changes
This commit is contained in:
parent
87c336a4aa
commit
4621a8f409
7 changed files with 32 additions and 1 deletions
|
|
@ -411,6 +411,9 @@ local function saveConfiguration(subdir, config)
|
|||
local value = json.encode(config)
|
||||
ntop.setPref(key, value)
|
||||
end
|
||||
|
||||
-- Reload the periodic scripts as the configuration has changed
|
||||
ntop.reloadPeriodicScripts()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
@ -1119,6 +1122,9 @@ local function saveConfigsets(configsets)
|
|||
|
||||
ntop.setPref(CONFIGSETS_KEY, confjson)
|
||||
|
||||
-- Reload the periodic scripts as the configuration has changed
|
||||
ntop.reloadPeriodicScripts()
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue