mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-01 16:34:59 +00:00
fix(worker): use dynaload for single binaries (#2620)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
f569237a50
commit
8d84dd4f88
3 changed files with 27 additions and 19 deletions
|
@ -49,7 +49,7 @@ func LoadLDSO(assetDir string, args []string, grpcProcess string) ([]string, str
|
|||
if _, err := os.Stat(ldPath); err == nil {
|
||||
log.Debug().Msgf("ld.so found")
|
||||
// We need to run the grpc process with the ld.so
|
||||
args = append(args, grpcProcess)
|
||||
args = append([]string{grpcProcess}, args...)
|
||||
grpcProcess = ldPath
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue