Fix script checks missing in loadModule and isSystemScriptEnabled

This commit is contained in:
emanuele-f 2020-02-10 10:54:24 +01:00
parent aea228e376
commit 6f68c77967
2 changed files with 114 additions and 92 deletions

View file

@ -429,6 +429,7 @@ function plugins_utils.loadPlugins(community_plugins_only)
-- Remove previously loaded plugins
ntop.rmdir(plugins_utils.PLUGINS_RUNTIME_PATH)
deleteCachePattern("ntonpng.cache.user_scripts.available_system_modules.*")
-- Note: load these only after cleaning the old plugins, to avoid
-- errors due to ntopng version change (e.g. after adding the --community switch)