mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Redirect to configuration page on first nedge start
This commit is contained in:
parent
f951fdb7b7
commit
08255fab00
2 changed files with 11 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue