mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Rework embedded checks
This commit is contained in:
parent
cc0b482e42
commit
d93ad2562d
13 changed files with 48 additions and 45 deletions
|
|
@ -989,12 +989,14 @@ function getNtopngRelease(ntopng_info, verbose)
|
|||
release = "Enterprise"
|
||||
elseif(ntopng_info["pro.release"]) then
|
||||
release = "Professional"
|
||||
elseif(ntopng_info["version.embedded_edition"]) then
|
||||
release = "/Embedded"
|
||||
else
|
||||
release = "Community"
|
||||
end
|
||||
|
||||
if not isEmptyString(release) and ntopng_info["version.embedded_edition"] then
|
||||
release = release .. " (Embedded)"
|
||||
end
|
||||
|
||||
-- E.g., ntopng edge v.4.3.210112 (Ubuntu 16.04.6 LTS)
|
||||
local res = string.format("%s %s v.%s (%s)", ntopng_info.product, release, ntopng_info.version, ntopng_info.OS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue