Update os version check

This commit is contained in:
Alfredo Cardigliano 2024-06-04 16:40:26 +00:00
parent 64c3d01141
commit 335ff7552e

View file

@ -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)