Use new user scripts config and gui

The user scripts configuration can now be configured from the "User Scripts" entry under the cog
icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and
interfaces.
This commit is contained in:
emanuele-f 2020-01-03 13:01:20 +01:00
parent 538ebc741a
commit d037f9a9a4
18 changed files with 533 additions and 542 deletions

View file

@ -38,9 +38,17 @@ end
-- The function below ia called once (#pragma once)
function teardown()
local all_modules = syslog_modules.modules
for mod_name, syslog_module in pairs(syslog_modules) do
local script = all_modules[mod_name]
if syslog_module.teardown ~= nil then
syslog_module.teardown()
local conf = user_scripts.getTargetHookConfig(syslog_conf, script)
if conf.enabled then
syslog_module.teardown(conf.script_conf)
end
end
end
end