Avoid using sudo for has-service check

This commit is contained in:
emanuele-f 2018-12-31 10:37:17 +01:00
parent 2cd61c089e
commit 7360e2a363
2 changed files with 7 additions and 3 deletions

View file

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