fix: explicitly specified PATH envars in apigateway
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2023-03-27 19:56:41 +02:00
parent fc557738db
commit 68ba457a74

View File

@ -135,10 +135,11 @@ function SystemController:apigateway(...)
if ulib.exists(home.."/.local/bin") then
paths = paths..home.."/.local/bin:"
end
local envar = ulib.getenv("PATH")
if envar then
paths = paths..envar
end
--local envar = ulib.getenv("PATH")
--if envar then
-- paths = paths..envar
--end
paths = paths.."/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin"
ulib.setenv("PATH", paths,1)
end
-- run the code as user