mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Avoid using sudo for has-service check
This commit is contained in:
parent
2cd61c089e
commit
7360e2a363
2 changed files with 7 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ function os_utils.hasService(service_name, ...)
|
|||
return false
|
||||
end
|
||||
|
||||
local cmd = ntopctl_cmd(service_name, true, "has-service", ...)
|
||||
local cmd = ntopctl_cmd(service_name, false, "has-service", ...)
|
||||
local rv = os_utils.execWithOutput(cmd)
|
||||
return(rv == "yes\n")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue