mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Update os version check
This commit is contained in:
parent
64c3d01141
commit
335ff7552e
1 changed files with 3 additions and 4 deletions
|
|
@ -163,11 +163,10 @@ function system_config:getConfHandler()
|
|||
|
||||
local info = ntop.getInfo(false)
|
||||
local os = info.OS
|
||||
local config_target = "network_ifaces"
|
||||
local config_target = "netplan"
|
||||
|
||||
if string.find(os, "Ubuntu 18%.") ~= nil or
|
||||
string.find(os, "Ubuntu 20%.") ~= nil then
|
||||
config_target = "netplan"
|
||||
if string.find(os, "Ubuntu 16%.") then
|
||||
config_target = "network_ifaces"
|
||||
end
|
||||
|
||||
return require(config_target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue