mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added script tracings
This commit is contained in:
parent
9ccf4e5acc
commit
74f03c3a38
17 changed files with 91 additions and 4 deletions
|
|
@ -14,8 +14,6 @@ local is_windows = ntop.isWindows()
|
|||
local is_freebsd = ntop.isFreeBSD()
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
local NTOPCTL_CMD = dirs.bindir.."/ntopctl"
|
||||
local NTOPNG_CONFIG_TOOL = dirs.bindir.."/ntopng-utils-manage-config"
|
||||
|
||||
-- ########################################################
|
||||
|
||||
|
|
@ -114,6 +112,8 @@ end
|
|||
-- ########################################################
|
||||
|
||||
local function ntopctl_cmd(service_name, use_sudo, ...)
|
||||
local NTOPCTL_CMD = dirs.bindir.."/ntopctl"
|
||||
|
||||
if not ntop.exists(NTOPCTL_CMD) then
|
||||
return nil
|
||||
end
|
||||
|
|
@ -141,6 +141,7 @@ end
|
|||
--! @return true if service is available, false otherwise.
|
||||
function os_utils.hasService(service_name, ...)
|
||||
local prefs = ntop.getPrefs()
|
||||
local NTOPNG_CONFIG_TOOL = dirs.bindir.."/ntopng-utils-manage-config"
|
||||
|
||||
if not isEmptyString(prefs.user)
|
||||
and prefs.user ~= "ntopng"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue