Reload the periodic scripts when the configuration changes

This commit is contained in:
emanuele-f 2019-12-31 19:31:03 +01:00
parent 87c336a4aa
commit 4621a8f409
7 changed files with 32 additions and 1 deletions

View file

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