Redirect to configuration page on first nedge start

This commit is contained in:
Emanuele Faranda 2017-12-28 13:37:02 +01:00
parent f951fdb7b7
commit 08255fab00
2 changed files with 11 additions and 0 deletions

View file

@ -10,6 +10,16 @@ require "lua_utils"
interface.select(ifname)
if(ntop.isnEdge()) then
package.path = dirs.installdir .. "/pro/scripts/lua/nedge/modules/?.lua;" .. package.path
local nf_config = require("nf_config"):readable()
if nf_config.isFirstStart() then
print(ntop.httpRedirect(ntop.getHttpPrefix().."lua/pro/nedge/system_setup/interfaces.lua"))
return
end
end
if(ntop.isPro()) then
if interface.isPcapDumpInterface() == false then
print(ntop.httpRedirect(ntop.getHttpPrefix().."/lua/pro/dashboard.lua"))