mirror of
https://github.com/antos-rde/antos-backend.git
synced 2024-12-25 12:48:22 +01:00
fix: explicitly specified PATH envars in apigateway
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good
This commit is contained in:
parent
fc557738db
commit
68ba457a74
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user